Problem
The session protocol exposes only an ID, label, state, start time, and last activity time.
The command palette cannot distinguish similar sessions by project, worktree, branch, runtime, model, or cost.
Proposed change
Extend SessionInfo with metadata that each runtime can establish without guessing.
Show available metadata in the command palette and omit fields that a runtime cannot supply.
Acceptance criteria
- The protocol can carry the project path, worktree, branch, runtime, model, and session totals as optional fields.
- Claude, Codex, and Pi populate each field that their event streams establish.
- The command palette searches and displays the available metadata.
- Missing metadata does not produce placeholder or invented values.
- Protocol and palette tests cover partial metadata.
Source
Problem
The session protocol exposes only an ID, label, state, start time, and last activity time.
The command palette cannot distinguish similar sessions by project, worktree, branch, runtime, model, or cost.
Proposed change
Extend
SessionInfowith metadata that each runtime can establish without guessing.Show available metadata in the command palette and omit fields that a runtime cannot supply.
Acceptance criteria
Source
web/lib/bridge-types.tsdefines the web session shape.extension/src/protocol.tsdefines the canonical session shape.