Skip to content

Document moving History to a sub-env - #338

Merged
gdey merged 1 commit into
mainfrom
claude/project-thread-cqp0i4
Nov 23, 2026
Merged

gdey merged 1 commit into
mainfrom
claude/project-thread-cqp0i4

Conversation

@gdey

@gdey gdey commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Requested by j · project thread

Step 4 of docs/history-sub-env/design.md. It documents the History pane moving to a sub-env, which landed in #327, #333 and #335.

Changes

  • docs/spec.md, the Interactive shell paragraph, now covers:
    • how the pane moves: the env menu in mdsh-gui and --serve, @ in mdsh -i, and never by selecting a block;
    • what the env's shell starts with, and that a scripted one asks first;
    • env=NAME History blocks;
    • jobs and screens kept per shell;
    • Play stopping only the block's own env's command;
    • the side shell starting from the block's env.
  • README.md: @ in the --interactive-shell paragraph.
  • docs/cheatsheet.md: an @ row in the mdsh -i keys, and the env menu in the mdsh-gui History pane notes.
  • Site, desktop.md and interactive.md: the env menu, and @.
  • Test fix: TestLiveHistory now waits for the next prompt before typing on, as a person would.
    • It failed once on this PR's CI, with sh: the test typed echo hi; (exit 3) before sh had drawn its next prompt.
    • sh echoed the line ahead of the prompt, so the command's output (hi) was read as the line.
    • The test change is the same 300ms wait TestLiveHistoryTUI already uses.

Screenshots

None. Docs only; the screenshots are in #333 and #335.

Testing

  • go vet ./... and go test ./web ./cmd/mdsh pass.
  • go test ./notebook -run 'TestLiveHistory$' -count=3 passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W9mexobBrcp7hg29tVPDsZ

@gdey gdey self-assigned this Nov 23, 2026
@gdey
gdey force-pushed the claude/project-thread-cqp0i4 branch 2 times, most recently from 96059a8 to 52b8505 Compare November 23, 2026 18:51
The spec, README, cheat sheet and site say how the History pane moves
to another env the file names, from the env menu on its bar or with @
in mdsh -i, and what that env's shell starts with.

It also lets TestLiveHistory wait for the next prompt before typing on,
as a person would: sh echoes a line typed ahead of its prompt before the
prompt, where it was read as the output, which failed CI once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W9mexobBrcp7hg29tVPDsZ
@gdey
gdey force-pushed the claude/project-thread-cqp0i4 branch from 52b8505 to b960acd Compare November 23, 2026 18:55
@gdey
gdey merged commit d6b6d91 into main Nov 23, 2026
6 checks passed
@gdey
gdey deleted the claude/project-thread-cqp0i4 branch November 23, 2026 18:57
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.

2 participants