Repository navigation
Description
Summary
The Agent Workspace (voice + canvas mode) is currently shown to all users whenever voice is available (VOICE_ENABLED=true and GEMINI_API_KEY is set). There is no admin gate — enabling voice implicitly enables workspace for everyone. Workspace should be a separate admin-controlled feature flag, defaulting to off, so admins can roll it out deliberately rather than having it appear automatically when voice keys are configured.
Context
The workspace feature (/agents/:name/workspace) starts a Gemini Live voice session with workspace_mode=true, enabling 4 additional panel tools (show_markdown, update_panel, append_to_panel, clear_panel) and a canvas UI. It is a newer, experimental capability (marked BETA in the UI) that sits on top of voice.
Currently the "Workspace" button in AgentHeader.vue is shown whenever sessionsStore.voiceAvailable is true, which is read from GET /api/settings/feature-flags → voice_available = VOICE_ENABLED && bool(GEMINI_API_KEY). There is no separate workspace gate.
Key files:
src/backend/routers/settings.py:127-128— feature-flags endpoint (addworkspace_availablehere)src/backend/services/settings_service.py:149-170—is_session_tab_enabled()pattern to followsrc/frontend/src/stores/sessions.js:42,69— readsvoice_available; needsworkspace_availablesrc/frontend/src/components/AgentHeader.vue:152—v-if="voiceAvailable"on the workspace buttonsrc/frontend/src/views/AgentDetail.vue:68— passes:voice-availableprop to AgentHeader
Acceptance Criteria
- Add
WORKSPACE_ENABLEDenv var (default:false) andis_workspace_enabled()helper insettings_service.py, following theis_session_tab_enabled()pattern -
GET /api/settings/feature-flagsreturnsworkspace_available: boolcomputed asvoice_available AND is_workspace_enabled() -
sessions.jsstore readsworkspace_availablefrom feature-flags and exposes it asworkspaceAvailable -
AgentHeader.vueworkspace button checksworkspaceAvailable(notvoiceAvailable) — voice can be on while workspace is off -
AgentDetail.vuepasses:workspace-availableas a separate prop to AgentHeader - Admins can enable workspace by setting
WORKSPACE_ENABLED=true(env-based, no DB UI required for now) - Default is off: deploying with only
GEMINI_API_KEYset does NOT show the workspace button
Technical Notes
Follow the exact pattern used for SESSION_TAB_ENABLED in settings_service.py — env-var opt-in only, no DB toggle needed for this initial pass. The workspace_available flag must be false when voice_available is false (workspace requires voice as a prerequisite).
Activity
vybe commentedon May 16, 2026
/claim
github-actions commentedon May 16, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/860-<short-slug>Fixes #860feat(workspace): gate Agent Workspace behind admin feature flag, off …
docs(architecture): add workspace_available to feature-flags endpoint…
docs(feature-flows): sync flows with recent merges (#857, #860, #865, #…
feat(workspace): gate Agent Workspace behind admin feature flag, off …
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.7.0 (#1319)
fix(config): retire WORKSPACE_ENABLED — ent#438 removed the surface i…
merge-train: re-point the ent#362 wake-control pin at the #860 reach …
fix(rooms): every principal's access is re-checked at wake time (trin…