Skip to content

feat(terminal): nano editor builtin - #2547

Merged
chaliy merged 2 commits into
mainfrom
claude/project-thread-vu3h37
Oct 7, 2026
Merged

chaliy merged 2 commits into
mainfrom
claude/project-thread-vu3h37

Conversation

@chaliy

@chaliy chaliy commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What changed

  • New nano builtin in terminal sessions: a subset GNU-nano-style editor with typing, cursor keys, ^O write out, ^X exit (asks to save when modified), ^K/^U cut and paste a line, ^W search, ^G help and ^C cursor position.
  • EDITOR=nano works for the $EDITOR flows (git commit without -m).
  • The unsupported surface is documented as L-TERM-005; the threat model entry TM-DOS-119 now covers nano's buffers.

Why

Agents and the scripts they run often default to nano. Without it, EDITOR=nano git commit failed and agents had to know to switch to vi.

Before / After

Before: nano notes.txt → nano: command not found (127).
After: nano notes.txt → editor with title bar and shortcut bar; type, ^O Enter saves, ^X returns to the prompt; cat notes.txt shows the edit. EDITOR=nano git commit → type the message, ^X, y → commit created.

Risk

  • Low. terminal feature only (off by default); new builtin, no change to existing commands.

Checklist

  • Tests added or updated
  • Backward compatibility considered

Generated by Claude Code

Subset GNU-nano-style editor for terminal sessions: typing, cursor keys,
^O write out, ^X exit with save prompt, ^K/^U line cut/paste, ^W search.
EDITOR=nano works for git commit. Documented as L-TERM-005.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit a348581 Commit Preview URL

Branch Preview URL
Oct 07 2026, 06:39 AM

Workspace feature unification turns on terminal in CI, so the
command-not-found check now expects nano only without terminal and
asserts it resolves with terminal. Run nano unit tests in the terminal
CI slice.
@chaliy
chaliy merged commit 1ea4653 into main Oct 7, 2026
47 checks passed
@chaliy
chaliy deleted the claude/project-thread-vu3h37 branch October 7, 2026 06:58
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.

1 participant