Repository Public
1# NEXTERM — Progress log (verified outcomes only)23Legend: ✅ verified · 🔄 in progress · ⛔ blocked · ⬜ not started45## Phase 0 — Discovery & spike ✅ (2026-11-01)6- ✅ Environment inspected (see PLAN.md table).7- ✅ libghostty spike: 320/337 build steps, blocked by missing Metal Toolchain; API unstable → deferred (ADR 0001).8- ✅ SwiftTerm 1.99.2 adopted; `NEXTERMKit` package builds with Swift 6 strict concurrency.9- ✅ `xcodegen generate` → `NEXTERM.xcodeproj`; `Scripts/build.sh debug` → `build/DerivedData/Build/Products/Debug/NEXTERM.app`.10- ✅ Spike launched: `-zsh` child on `/dev/ttys012`; typed command echoed `NEXTERM_OK cols=112 lines=24`.1112## Phase 1 — Terminal MVP ✅ (2026-11-01)13- ✅ `WorkspaceController`: tabs, nested splits (same-axis splits stay flat), focus, close semantics with14 confirmation when a foreground program is detected via `tcgetpgrp` on the PTY.15- ✅ Pane canvas: absolute layout from the tree, drag-to-resize dividers, focus ring, maximize/restore,16 exited overlay (Restart/Close), context menu (split/move/close).17- ✅ Tab strip (rename, reorder, close), status bar (host via `gethostname`, cwd, kind, grid, status, live count),18 sidebar (sessions), inspector (verified facts: pid, tty, cwd, foreground program).19- ✅ Menu commands + shortcuts (docs/SHORTCUTS.md); Settings (appearance, behaviour); 4 themes; zoom.20- ✅ Paste protection (multi-line confirm), find bar (⌘F/⌘G), ⌘K clear.21- ✅ Verified by driving the app with System Events: 3 panes on ttys012/013/014, typing routed to the22 focused pane only, Focus Next/Left via menu (screenshots mvp3/mvp4).23- ⚠️ Fixed: `ProcessInfo.hostName` blocked the main thread (reverse DNS) → app launched with no visible window.2425## Phase 2 — Workspace system 🔄26- ✅ `PersistenceCore`: SQLite (WAL, bound parameters), migrations (`user_version`=1), `WorkspaceStore`,27 `SettingsStore`; 6/6 tests (round trip, subtree replace, corrupt rows dropped, SQL injection probe).28- ✅ Debounced saves (400 ms) after every mutation; save on quit; DB at `~/Library/Application Support/NEXTERM/nexterm.sqlite`.29- ✅ Restore on launch: 1 window / 2 tabs / 4 panes came back with **new** ttys and a per-pane banner30 "Layout restored · new process started (previous one was not reattached)" (persist2.png).31- ✅ Session identity is regenerated on restore so nothing can be mistaken for reattachment.32- ✅ Multi-window: `Move Pane to New Window` kept `sleep 600` (pid 40471, ttys014) and its zsh alive.33- ✅ Window geometry saved with display id/name; missing display → relocated to main screen (unit-tested34 with simulated topologies in `WindowPlacementTests`; hardware hot-plug not yet exercised).35- ✅ cwd tracking: OSC 7 when the shell emits it + libproc `PROC_PIDVNODEPATHINFO` probe every 2 s.36- ⬜ Workspace switcher / templates / multi-monitor presets.3738## Phase 3 — Claude Code ⬜39## Phase 4 — SSH, tmux, Git ⬜40## Phase 5 — Polish & release ⬜4142## Acceptance tests43| # | Test | Status | Evidence |44|---|---|---|---|45| 1 | Local zsh shell interactive | ✅ PASS | spike3.png, mvp3.png: typed commands echo tty + $COLUMNS |46| 2 | Interactive app + resize | ✅ PASS | vim in alt screen; window resized → grid 109×35, redraw correct (vim-resized.png) |47| 3 | 8 panes, no cross-session leakage | ✅ PASS | Scripts/smoke-test.sh: 8 shells on ttys012–019, each marker landed in exactly one pane |48| 4 | Move live pane between windows | ✅ PASS | sleep 600 pid 40471 / ttys014 unchanged after move; 3 windows |49| 5 | Restore layout after restart | ✅ PASS | persist2.png, sqlite rows 1/2/4 |50| 6 | Restoration ≠ reattachment | ✅ PASS | banner "new process started", new session IDs + ttys; Claude panes marked "reattached (resume)" |51| 7 | Launch installed Claude Code, auth untouched | ✅ PASS | claude 2.1.316 interactive, answered PONG; only `--session-id/--settings` passed; `~/.claude/settings.json` not modified |52| 8 | Two Git worktrees in two panes | ✅ PASS | worktrees.png; `git worktree list` shows main + agent/1 |53| 9 | SSH to authorized host, host-key handling | ✅ PASS | M1M32 (user's own node): known key → connected; unknown key → OpenSSH prompt, declined, known_hosts unchanged |54| 10 | Recover from SSH disconnect / missing monitor | ✅ PASS (SSH) · 🔄 (monitor: unit-tested relocation, no physical unplug performed) | ssh-drop1.png; WindowPlacementTests |55| 11 | Unit + integration + UI smoke + clean Release build | ✅ PASS (XCUITest runner ⛔ BLOCKED by environment) | Kit 42/42 (`swift test`), app unit 9/9 (`xcodebuild test`), `Scripts/smoke-test.sh` PASS, Release build clean |56| 12 | .app bundle launches on build machine | ✅ PASS | `dist/NEXTERM.app` (signed + notarized + stapled) launched, shell on ttys012; DMG `dist/NEXTERM-0.1.0.dmg` |5758## Known issues / caveats59* Claude Code's own "trust this folder" prompt appears for untrusted directories; NEXTERM never answers it.60 Verified after testing: `~/.claude.json` → `projects["/Users/simon-pierreboucher"].hasTrustDialogAccepted` is still `false`.61* macOS attributes TCC prompts (Downloads/Desktop/Documents) to NEXTERM when a child shell touches those folders — expected.62