Skip to content

v2.4.0 — pin, highlight, anchor and outline your prompts

Choose a tag to compare

@github-actions github-actions released this 27 Aug 04:03
· 613 commits to master since this release

Pin, highlight, anchor and outline your prompts

Requested in discussion #207 by @NilsZimmermann. When an agent floods a pane, the prompt you typed scrolls away and it gets hard to tell where one exchange ends and the next begins. wmux now keeps track.

Four views, each on its own switch in Settings → Prompts:

default
Highlight on Tints the rows your prompt occupies, with a left rail and a tick on the scrollbar. Colour configurable.
Anchor on, agent answers only Holds the view at the first line of an answer while the output grows below it. A ↓ N new lines pill appears — click it or press Ctrl+Shift+End to follow again. Scrolling down through the answer does not cancel it; reaching the bottom does.
Pin off Sticky header showing the last prompt (1–5 lines). Ctrl+Shift+K. Click it to jump back.
Outline available, closed Ctrl+Shift+L — every prompt in the pane with a filter box, click or Enter to jump, 📌 to pin. Docks left or right.

Also wmux prompts [--surface <id>] [--limit N] [--json], so an agent in a pane can ask what it has been asked.

Where the boundaries come from

All four are views over one per-surface prompt log, fed by two ranked sources:

  • Claude Code's UserPromptSubmit hook, which carries the prompt text verbatim. An agent TUI repaints over its own input box, so nothing that reads the screen afterwards can recover it — wmux was already receiving this hook and discarding the prompt.
  • OSC 133 semantic prompt marks, now emitted by all three shell integrations. The command text is read out of the terminal buffer rather than sent over the pipe, matching wmux's existing refusal to forward shell command lines to the renderer.

No heuristic third source: with neither present the log stays empty and every view is inert. If you already run Starship, oh-my-posh or bash-preexec with prompt marks, the shell half works with no wmux-specific setup.

Anchoring defaults to agent answers only. A shell following its own output isn't the problem #207 describes — it's what every terminal has done for forty years, and holding npm run build back from streaming would read as a freeze. Switch it to "agent answers and shell commands" if you want it everywhere.

Also fixed

  • PowerShell interrupted state. Dead since it shipped: $LASTEXITCODE was read after the git-branch check had already run git and overwritten it. Ctrl+C in a pwsh pane now shows up in the sidebar.
  • Hook payloads over 64 KB no longer lose the session id. A truncated payload failed to parse and took session_id with it, silently breaking claude --resume on restore.

Known limits

  • cmd.exe gets prompt marks but not command start/end — there is no preexec seam, so they are omitted rather than faked.
  • Closing an adjacent pane rebuilds the terminal from a serialized buffer, which carries no markers. Those prompts stay in the outline with the jump disabled rather than scrolling somewhere arbitrary.
  • The agent source needs the Claude Code hooks wmux installs; decline agent integration and you get the shell source only.

Bounded on purpose: 200 prompts per pane, 64 panes, 4000 characters per prompt, nothing written to disk, and a closed pane's log dropped immediately.


Mark of the Web: after downloading the zip, right-click → Properties → Unblock, or Get-ChildItem -Recurse | Unblock-File after extracting.