feat(session): surface background shell and subagent work (#360)

* feat(session): surface background shell and subagent work

* fix(session): address review feedback on background work UI
This commit is contained in:
Chris Scott authored and GitHub committed 2026-09-26 15:49:49 -04:00
1 parent 8b806e865f
commit 1389e8e59c
20 files changed
+802 -13

No files matched your search

+10
View File
@@ -8,6 +8,7 @@ import {
renameSession,
activateSkill,
interruptSession,
backgroundSession,
listAgents,
runShell,
sendPrompt,
@@ -375,6 +376,15 @@ export const useSendPrompt = (directory?: string) => {
});
};
export const useBackgroundSession = () => {
return useMutation({
mutationFn: (sessionID: string) => backgroundSession(sessionID),
onError: (error) => {
showToast.error(error instanceof Error ? error.message : "Failed to move work to the background");
},
});
};
const ABORT_RETRY_INTERVAL_MS = 3000;
const MAX_ABORT_RETRIES = 10;