mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 11:57:03 -07:00
feat: Introduce an AI-driven interactive shell mode with new
`read-shell` and `write-to-shell` tools and a configurable mode setting.
This commit is contained in:
@@ -92,7 +92,23 @@ export function shellReducer(
|
||||
nextTasks.delete(action.pid);
|
||||
}
|
||||
nextTasks.set(action.pid, updatedTask);
|
||||
return { ...state, backgroundTasks: nextTasks };
|
||||
|
||||
// Auto-hide panel when all tasks have exited
|
||||
let nextVisible = state.isBackgroundTaskVisible;
|
||||
if (action.update.status === 'exited') {
|
||||
const hasRunning = Array.from(nextTasks.values()).some(
|
||||
(s) => s.status === 'running',
|
||||
);
|
||||
if (!hasRunning) {
|
||||
nextVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
...state,
|
||||
backgroundTasks: nextTasks,
|
||||
isBackgroundTaskVisible: nextVisible,
|
||||
};
|
||||
}
|
||||
case 'APPEND_TASK_OUTPUT': {
|
||||
const task = state.backgroundTasks.get(action.pid);
|
||||
|
||||
Reference in New Issue
Block a user