Skip to content

Per-context view bar: swap the top-bar nav when a non-Code (Agent) context is active #1437

Description

@nick-pape

Summary

Today the view bar (AppNav — Dashboard / Tasks / Personas / Root / Sessions / Knowledge / Environments / Settings) is shared across every context. Selecting a context in the left ContextNav rail is inert in Phase 0 (it only dismisses the mobile drawer), so the top-bar nav looks identical whether you're in Code or (eventually) an Agent context.

For the context → view → detail spine to make sense, the view bar must be context-scoped: when an Agent ("Claw") context is active, the top-bar should show that agent's views (overview / config / history / live), not the Code workbench tabs.

Current behavior

  • ContextNav lists contexts (Code today; Fleet cluster = Coordination/Schedules above it).
  • handleSelectContext (packages/web/src/App.tsx) just calls setContextNavOpen(false) — no view switch.
  • AppNav renders one static tab set regardless of activeContextId.

Desired

  • Selecting a context updates the active context and the view bar reflects it.
  • Code → current workbench views (unchanged).
  • Agent context → agent-scoped views (e.g. Overview / Config / History; later Live per Live agent view (heartbeat, autonomous sessions, continuity) #1419).
  • Drives off the same data so adding contexts/agents is additive.

Scope / notes

Relationship

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions