You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vscode issue view omits core metadata (author, created date, assignees, labels) — absent from the IssueView wire contract #1592
Opening an issue in the VS Code extension (right-click a backlog row, "View Issue") renders only the title, state, body, and comments. Important metadata is missing entirely: who created the issue, when it was created, assignees, labels, and milestone. The reader gets no attribution or triage context without leaving the editor.
Root cause (verified in source)
Two layers, and the second is the real one:
renderIssue() in apps/vscode/src/commands/view-issue.ts emits exactly # title, **State:**, body, and comments.
The IssueView wire contract (packages/types/src/api.ts, mirrored from the forge issue-view concept and returned verbatim by Tower's GET /api/issue) carries only title, body, state, optional url, and comments. Author, createdAt, assignees, labels, and milestone are never fetched from the forge at all, so the extension cannot display them today.
Requirements
Extend the forge issue-view concept to fetch author login, createdAt, assignees, labels, and milestone, mapped forge-neutrally. All new fields optional so forges or forge scripts that do not emit them degrade gracefully (same pattern as the existing url field).
Extend IssueView in codev-types accordingly (wire shape only; no policy in the types package).
Surface the fields verbatim through Tower's GET /api/issue.
Render a metadata block in renderIssue() under the title: opened-by + creation date, labels, assignees, milestone when present; omit lines whose data is absent.
The existing refresh path (OverviewCache-driven refetch of open previews) must carry the new fields with no extra requests.
Scope notes
Cross-cutting by nature: forge scripts + codev-types contract + Tower API + vscode render. The contract change routes through the types/sdk/core stakeholder review pre-gate.
The PR view (PRView, GET /api/pr) likely has the same gap; confirming and fixing it may ride along if cheap, otherwise file separately on completion.
Shipped in PR #1616, merged to main 2026-09-04 as 21d25a7.
What changed
The forge issue-view concept fetches author, createdAt, assignees, labels, and milestone on all four forges (GitHub verified live; GitLab, Gitea, and Linear best-effort, mapped forge-neutrally). Absent optional scalars are omitted rather than emitted as null.
IssueView (codev-types) and its server-side mirror IssueViewResult gained the same five optional fields in one commit, with doc comments on both. Tower's GET /api/issue and the sdk client needed no change: both pass the forge result through verbatim.
renderIssue() renders a metadata block under the title (state and labels on one line, opened-by and date, assignees, milestone), omitting lines with no data. The existing refresh path carries the fields with no extra requests.
Requested at the dev-approval gate: a preview tab restored before Tower connected no longer sticks on "Content unavailable"; refresh now enumerates open preview documents and fires on connect, on tab open, and at activation.
Process
PIR: plan-approval, dev-approval, and pr gates approved by the owner on 2026-09-04. The contract section was reviewed by the main architect (types/sdk/core seat) before the plan gate.
Three-way consultation ran in the review phase; the one blocking finding (a duplicate fetch on manual open) was fixed with a regression test, plus four smaller fixes.
Activity
amrmelsayed commentedon Sep 2, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #1592] Plan draft
[PIR #1592] Plan revised: fold Section A stakeholder ruling (doc-comm…
[PIR #1592] Add author, createdAt, assignees, labels, milestone to Is…
[PIR #1592] Fetch author, createdAt, assignees, labels, milestone in …
[PIR #1592] Render issue metadata block (opened-by, labels, assignees…
[PIR #1592] Tests: renderIssue metadata block + fetchIssue field pass…
[PIR #1592] Builder thread: plan + implement phase log
[PIR #1592] Render state + labels on one line; singular Label/Assigne…
[PIR #1592] Fix issue preview stuck on 'Content unavailable' when a t…
[PIR #1592] Builder thread: dev-gate review feedback (layout + restor…
[PIR #1592] Review + retrospective
[PIR #1592] CMAP: correct Gitea author mapping doc comment (user.logi…
[PIR #1592] CMAP fix (codex): skip duplicate fetch when opening an al…
[PIR #1592] CMAP fix (claude): omit absent optional scalars in gitlab…
[PIR #1592] Record CMAP verdicts + dispositions in review; thread update
Merge pull request #1616 from cluesmith/builder/pir-1592
docs(changelog): issue preview metadata + restored-preview fix (#1592,…
amrmelsayed commentedon Sep 4, 2026
Outcome
Shipped in PR #1616, merged to main 2026-09-04 as 21d25a7.
What changed
issue-viewconcept fetches author, createdAt, assignees, labels, and milestone on all four forges (GitHub verified live; GitLab, Gitea, and Linear best-effort, mapped forge-neutrally). Absent optional scalars are omitted rather than emitted as null.IssueView(codev-types) and its server-side mirrorIssueViewResultgained the same five optional fields in one commit, with doc comments on both. Tower'sGET /api/issueand the sdk client needed no change: both pass the forge result through verbatim.renderIssue()renders a metadata block under the title (state and labels on one line, opened-by and date, assignees, milestone), omitting lines with no data. The existing refresh path carries the fields with no extra requests.Process
Follow-ups