Skip to content

feat: gate Agent Workspace behind admin feature flag (off by default) #860

Closed

Description

@vybe

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 (add workspace_available here)
  • src/backend/services/settings_service.py:149-170 — is_session_tab_enabled() pattern to follow
  • src/frontend/src/stores/sessions.js:42,69 — reads voice_available; needs workspace_available
  • src/frontend/src/components/AgentHeader.vue:152 — v-if="voiceAvailable" on the workspace button
  • src/frontend/src/views/AgentDetail.vue:68 — passes :voice-available prop to AgentHeader

Acceptance Criteria

  • Add WORKSPACE_ENABLED env var (default: false) and is_workspace_enabled() helper in settings_service.py, following the is_session_tab_enabled() pattern
  • GET /api/settings/feature-flags returns workspace_available: bool computed as voice_available AND is_workspace_enabled()
  • sessions.js store reads workspace_available from feature-flags and exposes it as workspaceAvailable
  • AgentHeader.vue workspace button checks workspaceAvailable (not voiceAvailable) — voice can be on while workspace is off
  • AgentDetail.vue passes :workspace-available as 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_KEY set 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

  1. added
    priority-p2
    type-feature
    on May 16, 2026
  2. vybe commented on May 16, 2026

    @vybe
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    on May 16, 2026
  4. github-actions commented on May 16, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/860-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #860
  5. added
    status-in-dev
    and removed
    status-in-progress
    on May 16, 2026
  6. vybe commented on Jun 1, 2026

    @vybe
    ContributorAuthor

    Shipped in v0.6.0 (released via #998).

  7. added
    theme-ui-ux
    and removed
    status-in-dev
    on Jun 1, 2026
  8. added a commit that references this issue on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority-p2theme-ui-uxtype-feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions