mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
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:
1 parent
8b806e865f
commit
1389e8e59c
20 files changed
+802
-13
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user