Skip to content

vscode issue view omits core metadata (author, created date, assignees, labels) — absent from the IssueView wire contract #1592

Closed

Description

@amrmelsayed

Problem

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:

  1. renderIssue() in apps/vscode/src/commands/view-issue.ts emits exactly # title, **State:**, body, and comments.
  2. 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

  1. 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).
  2. Extend IssueView in codev-types accordingly (wire shape only; no policy in the types package).
  3. Surface the fields verbatim through Tower's GET /api/issue.
  4. Render a metadata block in renderIssue() under the title: opened-by + creation date, labels, assignees, milestone when present; omit lines whose data is absent.
  5. 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.

Activity

  1. added
    area/cross-cutting
    on Sep 2, 2026
  2. amrmelsayed commented on Sep 2, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).

  3. added 15 commits that reference this issue on Sep 2, 2026
  4. amrmelsayed commented on Sep 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    Outcome

    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

    Follow-ups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cross-cutting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions