feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
This commit is contained in:
1 parent
f75470e72f
commit
6ff96f2a8f
93 files changed
+5632
-1156
No files matched your search
@@ -116,8 +116,14 @@ type BootState =
|
||||
modelName: string | null;
|
||||
ingressLimits: BootstrapResponse["limits"] | null;
|
||||
runtimeSurface: RuntimeSurface;
|
||||
webuiCapabilities: string[];
|
||||
};
|
||||
|
||||
function bootstrapCapabilities(boot: BootstrapResponse): string[] {
|
||||
const capabilities = boot.terminal?.webui?.capabilities;
|
||||
return Array.isArray(capabilities) ? capabilities.filter((entry) => typeof entry === "string") : [];
|
||||
}
|
||||
|
||||
const SIDEBAR_STORAGE_KEY = "nanobot-webui.sidebar";
|
||||
const SESSION_UPDATES_STORAGE_KEY = "nanobot-webui.sidebar.session-updates.v1";
|
||||
const LEGACY_COMPLETED_RUNS_STORAGE_KEY = "nanobot-webui.sidebar.completed-runs.v1";
|
||||
@@ -924,6 +930,7 @@ export default function App() {
|
||||
modelName: boot.model_name ?? current.modelName,
|
||||
ingressLimits: boot.limits ?? current.ingressLimits,
|
||||
runtimeSurface,
|
||||
webuiCapabilities: bootstrapCapabilities(boot),
|
||||
}
|
||||
: current,
|
||||
);
|
||||
@@ -971,6 +978,7 @@ export default function App() {
|
||||
modelName: boot.model_name ?? null,
|
||||
ingressLimits: boot.limits ?? null,
|
||||
runtimeSurface,
|
||||
webuiCapabilities: bootstrapCapabilities(boot),
|
||||
});
|
||||
} catch (e) {
|
||||
if (cancelled) return;
|
||||
@@ -1090,6 +1098,7 @@ export default function App() {
|
||||
token={state.token}
|
||||
modelName={state.modelName}
|
||||
ingressLimits={state.ingressLimits}
|
||||
webuiCapabilities={state.webuiCapabilities}
|
||||
>
|
||||
<RemoteInstances><Shell
|
||||
runtimeSurface={state.runtimeSurface}
|
||||
|
||||
Reference in new issue
Block a user