feat(runtime-api): expose thread branch metadata

Add read-only workspace and branch metadata to runtime thread summaries so VS Code Agent View can show when a thread lane is on another branch. Non-git workspaces return null branch metadata instead of failing.

Refs #2580, #2721.
Credits the existing branch-visibility trail from #1217/#2341 in the changelog.
This commit is contained in:
Hunter Bown
2026-06-05 21:39:46 -07:00
committed by GitHub
parent 38a0d551ca
commit 1bacaf763e
9 changed files with 161 additions and 19 deletions
+2
View File
@@ -184,6 +184,8 @@ function readThreadSummaries(value) {
preview: readString(record.preview) ?? "",
model: readString(record.model) ?? "unknown",
mode: readString(record.mode) ?? "agent",
workspace: readString(record.workspace),
branch: readString(record.branch),
archived: record.archived === true,
updatedAt: readString(record.updated_at) ?? "",
latestTurnStatus: readString(record.latest_turn_status),