Skip to content

v1.0.16 — Claude Code transcript

Choose a tag to compare

@QuangThai QuangThai released this 10 Oct 14:56
· 29 commits to main since this release

Claude Code transcript (opt-in) and presentation fixes

A new opt-in claude-code preset renders the Pi transcript the way Claude Code does. Existing presets, including claude, keep their current layout; the presentation fixes below apply to every preset.

● The expiry check compared with < instead of <=.

● Thought for 6.2s · Ctrl+T to show

● Bash(npm test -- auth)
  ⎿  … +18 earlier lines · Ctrl+O to expand
     ✕ rejects expired tokens (12 ms)
     ✘ Exit 1 · 2.2s · ~41 words

● Read 1 file, ran 2 shell commands · 6.7s · Ctrl+O to expand

Added

  • claude-code preset on top of the claude composer: ● Tool(args) calls with a ⎿ result gutter and a status-coloured marker (pending, running, done, failed), a ● marker on assistant answers, hidden thinking collapsed to ● Thought for 6s, and the run time on the working row.
  • The same pieces as individual options, all off by default: tools.chrome: "inline", messages.assistantMarker, messages.thinkingSummary, and theme.workingElapsed. Glyphs can be overridden through theme.glyphs.
  • Inline forms for compaction, skill, branch, and custom message blocks, user !commands, and the git diff / gh run views.
  • Todo checklists (☒/☐) for todos in a tool's arguments or result details (pi-todo's todo_write, todo_update, todo_read). Inline turns keep them visible after the turn collapses.
  • Golden snapshot tests for every tool surface (boxed, light, and inline at 80 and 36 columns), assistant messages, thinking, special message blocks, and user commands.

Fixed (all presets)

  • The first paint of a git diff result leaked the internal omitted-row marker as a stray row.
  • Adaptive diff rows whose background had a colour channel of 49 emitted a malformed SGR sequence.
  • Completed-turn summaries timed read/ls/find/grep until the run collapsed instead of until the tool finished (for example 7.52s instead of 0.12s).
  • Read headers no longer show :1 for whole-file reads or null optional arguments.
  • Bash results no longer show Pi's literal (no output) as output or count it as words.
  • Write previews no longer number an empty line after a final newline.
  • Turn summaries read as one sentence, and extension tools share one clause (used vcc_recall, mcp ×2 and web_fetch).
  • Collapsed skill blocks skip Pi's References are relative to … line; pi-vcc summaries skip their [Session Goal] heading and keep underscores inside words.
  • A running user !command showed Running · 0.0s; it now shows its elapsed time.

Changed

  • Removed unused rendering helpers and options and enabled noUnusedLocals; no visible change (golden snapshots unchanged).

Try the transcript

{
  "piOmpTheme": {
    "preset": "claude-code"
  }
}

or run /pi-omp-theme preset claude-code.

Verification

  • CI: this repository has no configured GitHub Actions workflows, check-runs, or commit-status contexts for the release commit. The local release gates below all passed.
  • npm ci and npm run check: typecheck, 308 unit/integration/golden tests, dependency boundaries, production build, and package smoke.
  • npm run test:e2e:readonly-tools: 25/25 packed-package CLI/RPC cases on Pi 0.99.1 with pi-hashline-edit-pro 4.5.1 (ripgrep supplied on PATH, since the offline sandbox cannot download it).
  • npm publish --dry-run: the expected 7-file npm artifact (141.0 kB packed, 610.7 kB unpacked).
  • Real TUI runs: Pi 1.1.0 driven in a pseudo-terminal (@lydell/node-pty + @xterm/headless) with the built extension, a deterministic local provider, and an isolated agent directory. Covered core tools, batching, diffs, turn collapse, thinking, interrupt, pi-ask, pi-todo, user !commands, pi-vcc recall and compaction, skills, pi-mcp-adapter, and pi-search fetch tools, in fullscreen and regular modes. Marker colours were read from the terminal cells. The user's Pi directory was hash-checked before and after each run.
  • Not covered by real-TUI runs: branch summaries (golden only), web search providers that need network keys, and the btw overlay's content.

Tested on Windows x64 with Node 24.11.1. Linux/macOS runs were not part of this verification.

Install / update

Published on npm. The registry latest tag, gitHead (release commit), tarball shasum, a clean install whose bundle matches the release build byte for byte, and a real Pi 1.1.0 TUI run of the installed package with the claude-code preset have been verified.

pi install npm:@nguyenquangthai/pi-omp-theme@1.0.16
# For an existing unpinned installation:
pi update npm:@nguyenquangthai/pi-omp-theme