feat(webui): add a compact composer workspace toolbar (#6256)
* feat(webui): add a compact composer workspace toolbar * refactor(webui): simplify composer workspace access control * feat(webui): add a draggable workspace access capsule * refactor(webui): simplify composer permission controls * fix(webui): align mobile workspace permissions and stabilize CI test
This commit is contained in:
1 parent
0254bf1217
commit
cf0a0276a7
34 files changed
+528
-267
No files matched your search
@@ -206,6 +206,7 @@ export async function listSessions(
|
||||
run_started_at?: number | null;
|
||||
recovery_state?: RecoveryState | null;
|
||||
workspace_scope?: WorkspaceScopePayload | null;
|
||||
project_locked?: boolean;
|
||||
handle?: SessionHandle | null;
|
||||
};
|
||||
const body = await request<{ sessions: Row[] }>(
|
||||
@@ -227,6 +228,7 @@ export async function listSessions(
|
||||
runStartedAt: s.run_started_at ?? null,
|
||||
recoveryState: s.recovery_state ?? null,
|
||||
workspaceScope: s.workspace_scope ?? null,
|
||||
projectLocked: s.project_locked,
|
||||
handle,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -58,6 +58,7 @@ export function readReloadSessions(): ChatSummary[] {
|
||||
...(typeof row.modelPreset === "string" ? { modelPreset: row.modelPreset } : {}),
|
||||
...(typeof row.runStartedAt === "number" ? { runStartedAt: row.runStartedAt } : {}),
|
||||
...(workspaceScope ? { workspaceScope } : {}),
|
||||
...(typeof row.projectLocked === "boolean" ? { projectLocked: row.projectLocked } : {}),
|
||||
}];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -455,6 +455,8 @@ export interface ChatSummary {
|
||||
/** Durable recovery state that needs attention after an interrupted turn. */
|
||||
recoveryState?: RecoveryState | null;
|
||||
workspaceScope?: WorkspaceScopePayload | null;
|
||||
/** Server-owned project binding after the first accepted user message. */
|
||||
projectLocked?: boolean;
|
||||
/** Stable, server-owned @handle for this session. */
|
||||
handle?: SessionHandle | null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user