Files
skills/docs/requirements/079-paths-open-in-vscode.md
T
Kevin Veen-BirkenbachandClaude Opus 5.5 c4975d8246 docs(requirements): add the hub requirements 072 to 084
Queue controls tab and override, running tasks on the board, stale task
prune, release cut, greyed card stamp, commit-tree diff, VS Code path
links, expired cards, Match refresh hourglass, field attachments,
self-tuning queue admission and the limits board.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:38:47 +00:00

2.0 KiB

079 - Paths Open in VS Code

User Story

As the operator, I want to click folder and file names on cards and have them open in VS Code, so that I inspect a change without typing its path.

Decisions (operator-confirmed 2026-11-27; do not re-litigate)

  1. vscode://file/<absolute path> (operator): a file opens in VS Code, a folder opens as a window. Rejected: a file viewer in the hub (new trust boundary, the container would read host files); a browser extension (effort); a runner xdg-open (a signature per click).
  2. Where: the folder chip, the worktree chip, and the file head of every diff (worktree plus relative path).
  3. Copy: right-click copies the full path, as left-click does today.

Approach

flowchart TD
    subgraph P["🧭 0 · Preparation"]
        P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
        P2 -- "✏️ corrections" --> P1
    end
    P2 -- "🤖 yes" --> A1
    subgraph A["🔗 A · Path links"]
        A1["🧩 Link builder"] --> A2["🏷️ Chips and diff heads as links"]
        A2 --> A3["📋 Right-click copies"]
        A3 --> A4{"🧪 Unit and E2E green?"}
        A4 -- "🔴 no: fix" --> A1
        A4 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
        AF -- "✏️ changes" --> A2
    end
    AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]

Acceptance Criteria

  • The href of the folder chip is exactly vscode://file/<absolute path>.
  • The worktree chip links the same way to its worktree.
  • A diff file head links to <worktree>/<path>.
  • Right-click on a link copies the full path and opens no context menu.
  • A relative or empty path renders as text without a link.

Tests

  • Unit:
    • The link builder (node): absolute path, characters needing encoding, relative and empty path.
  • Integration:
    • n/a: page only, no hub or runner change.
  • E2E:
    • tests/e2e/test_path_links_e2e.py: hrefs and right-click copy, screenshots at 1920, 1366 and 390.