Skip to content

feat(web): workflow command palette + session transcript export (issue #241) - #242

Merged
dahai80 merged 1 commit into
mainfrom
feat/241-command-palette-transcript-export
Nov 5, 2026
Merged

dahai80 merged 1 commit into
mainfrom
feat/241-command-palette-transcript-export

Conversation

@dahai80

@dahai80 dahai80 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closes #241

What

First slice of the web-surface gap flagged by the 2026-11-04 audit (111 slash-command modules vs 5 pages).

Command palette (session page)

  • server/commandRegistry.ts — curated registry of 18 workflow commands across plan / review / security / git / quality / docs. Entries are natural-language prompt templates, not kernel slash names: print mode (-p) deliberately skips slash handling, so picking a palette entry fills the composer with an equivalent prompt the kernel executes as a turn.
  • GET /api/commands serves the registry.
  • Session page: "Commands" button next to the follow-up composer opens CommandPalette (search filter, category-grouped, Esc/overlay close, a11y key handlers); selection fills the composer for edit-then-send.
  • logCommandPaletteUse telemetry hook wired in the registry.

Transcript export

  • GET /api/sessions/{id}/export — read-only walk of the kernel JSONL, renders user/assistant turns (+ tool names per turn) as markdown, Content-Disposition: attachment.
  • Session page header gains an Export button (api.exportTranscript → blob download).

Verification

  • bun run typecheck + vite build green
  • biome check src server clean (0 errors, 0 warnings)
  • bun test tests 70 pass / 0 fail

Remaining for full #241 scope (follow-ups)

  • Checkpoints / session-pack page
  • Memory / templates / KB status panels

🤖 Generated with Claude Code

…#241)

First slice of the web-surface gap (111 slash-command modules vs 5 pages):

- Curated workflow-command registry (server/commandRegistry.ts): 18
  natural-language prompt templates across plan/review/security/git/
  quality/docs. Entries are prompts, not kernel slash names — print mode
  skips slash handling, so the palette fills the session composer with an
  equivalent prompt the kernel executes as a turn.
- GET /api/commands serves the registry; the session page loads it and
  renders CommandPalette (searchable, category-grouped, Esc/overlay
  close) with a "Commands" button next to the composer.
- GET /api/sessions/{id}/export renders the kernel JSONL transcript as
  markdown (user/assistant turns + tool names) and downloads it; session
  page header gains an Export button.

Verified: tsc + vite build green, biome clean, bun test 70 pass / 0 fail.

Part of #241 — palette covers the top ~20 workflow commands; checkpoints
page and memory/templates/KB panels remain as follow-ups.

Closes #241

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit 5e8715e into main Nov 5, 2026
1 check passed
@dahai80
dahai80 deleted the feat/241-command-palette-transcript-export branch November 5, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web surface gap: 111 slash commands, only 5 UI pages

1 participant