Commit graph

1491 commits

Author SHA1 Message Date
Lawrence Chen
9bb2816e05
Fix main CI regressions (#1458)
Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-15 02:04:33 -07:00
Lawrence Chen
8db9ebb4a9
Merge pull request #1459 from manaflow-ai/task-cmux-themes-helper-not-found
Fix bundled Ghostty theme picker helper packaging
2026-03-14 23:52:20 -07:00
Lawrence Chen
f576d2233f
Bundle Ghostty theme picker helper 2026-03-14 22:40:36 -07:00
Lawrence Chen
2167323153
Add bundled Ghostty helper regression test 2026-03-14 22:30:01 -07:00
Austin Wang
6c203b5144
Prepare 0.62.2 release (#1430) 2026-03-14 03:42:21 -07:00
Lawrence Chen
6c644d930d
Allow smaller sidebar widths (#1420)
* Add sidebar minimum width UI regression test

* Allow narrower sidebar resizing

* Set smaller sidebar minimum to 180
2026-03-13 21:40:25 -07:00
Lawrence Chen
623262493b
Fix stale Claude sidebar status: add missing hooks, OSC suppression, PID sweep (#1306)
* Fix stale Claude status in sidebar by adding missing hooks and OSC suppression

The Claude Code integration only used 3 hooks (SessionStart, Stop, Notification),
leaving gaps that caused stale sidebar status. Now uses 6 hooks:

- SessionEnd: clears status when Claude exits (covers Ctrl+C where Stop doesn't fire)
- UserPromptSubmit: clears "Needs input" and sets "Running" on new prompt
- PreToolUse (async): clears "Needs input" when Claude resumes after permission grant

Also:
- Suppress OSC 9/99 desktop notifications for workspaces with active Claude hook
  sessions to prevent duplicates from the raw OSC path
- Store Claude process PID in status entries for stale-session detection
- Add 30-second sweep timer that checks agent PIDs and clears stale entries
  (safety net for SIGKILL/crash where no hook fires)
- Update wrapper test expectations for the new hook set

Fixes https://github.com/manaflow-ai/cmux/issues/1301

* Don't show "Running" status on Claude launch, only when actually working

SessionStart now registers the PID for tracking and OSC suppression via
set_agent_pid without setting a visible status entry. "Running" only
appears when the user submits a prompt (UserPromptSubmit) or Claude
starts using tools (PreToolUse).

Added set_agent_pid / clear_agent_pid socket commands to decouple PID
tracking from visible status entries. OSC suppression checks agentPIDs
instead of statusEntries so it works during the initial idle period.

* Don't restore status entries across app restarts

Status entries are ephemeral runtime state tied to running processes
(e.g. claude_code "Running"). Restoring them after restart shows stale
status for processes that no longer exist.

* Address PR review comments and remove debug logging

- session-end: only clear status/PID/notifications when Stop didn't fire first
- PID sweep: check errno == ESRCH instead of treating all kill(pid,0) failures as dead
- Validate CMUX_CLAUDE_PID > 0
- Propagate tracked PID in pre-tool-use setClaudeStatus
- OSC suppression: use tabManagerFor(tabId:) for multi-window support
- clearAgentPID: resolve tab UUID before async dispatch
- restoreSessionSnapshot: also clear agentPIDs alongside statusEntries
- Fix AskUserQuestion surfaceId overwrite (wrong workspace notification)
- Fix notification text matching for "Claude Code needs your attention"
- AskUserQuestion: render option labels as bracketed inline text
- Remove artificial text truncation limits
- Remove temporary JSONL debug logging from all handlers

* Use resolveTabIdForSidebarMutation in clearAgentPID
2026-03-13 20:47:42 -07:00
Austin Wang
85ebbb686f
Merge pull request #1417 from manaflow-ai/issue-1414-cmd-palette-arrow-keys
Fix command palette command-mode shortcut and navigation
2026-03-13 20:15:28 -07:00
austinpower1258
c1e264f325 Fix command palette command mode navigation 2026-03-13 20:14:03 -07:00
austinpower1258
50c59babc1 Add regression tests for command palette shortcut routing 2026-03-13 20:14:01 -07:00
Lawrence Chen
b81adaf67c
Merge pull request #1408 from manaflow-ai/feat-cli-sentry-release-tagging
Tag CLI Sentry events with app release
2026-03-13 20:03:40 -07:00
Lawrence Chen
919c9b1632
Merge pull request #1415 from manaflow-ai/task-throttle-socket-listener-start-failures
Throttle repeated socket listener start failures
2026-03-13 20:02:56 -07:00
Lawrence Chen
2a8d4475a3
Throttle repeated socket listener start failures 2026-03-13 19:54:09 -07:00
Austin Wang
80fea629f5
Merge pull request #1413 from manaflow-ai/issue-1409-omnibar-backspace-arrow
Fix omnibar backspace/arrow key loss after prefix deletion
2026-03-13 18:17:54 -07:00
austinpower1258
48ec60946f Replace command palette SwiftUI TextField with native AppKit NSTextField
The SwiftUI TextField lost arrow-key and backspace handlers when the
query prefix (">") was deleted, because the scope transition tore down
the .onKeyPress modifiers. Using an NSViewRepresentable with an AppKit
field editor keeps navigation commands (up/down/enter/escape) on the
native delegate, making them immune to SwiftUI scope changes.

Fixes #1409

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:16:57 -07:00
Lawrence Chen
98f5553335
Fix macOS dictation NSTextInputClient conformance (#1410)
* Add dictation text input regression tests

* Fix dictation text input client conformance

* Fix dictation caret rect anchoring

---------

Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-13 18:14:02 -07:00
Lawrence Chen
f90bcbc862
Merge pull request #1382 from manaflow-ai/task-cmd-p-search-all-surfaces
Add Cmd+P all-surface search option
2026-03-13 17:55:10 -07:00
Lawrence Chen
89c1d6c255
Tag CLI Sentry events with app release 2026-03-13 17:53:25 -07:00
Lawrence Chen
9ee6e0ca6e
Defer palette fingerprint refresh after query transitions 2026-03-13 17:42:43 -07:00
Lawrence Chen
5d348217eb
Strengthen Cmd+Shift+P backspace UI regression 2026-03-13 17:42:41 -07:00
Lawrence Chen
8a0934b801
Fallback stable socket listener to a user-scoped path (#1351)
* Fallback stable socket listener to user socket path

* Move stable socket path out of /tmp

* Keep socket health checks active on fallback paths

---------

Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-13 17:37:01 -07:00
Lawrence Chen
126c6c6e56
Merge pull request #1405 from manaflow-ai/task-fix-main-ci-cd
Fix GhosttyKit checksum drift in CI
2026-03-13 17:33:33 -07:00
Lawrence Chen
c8dc102aee
Pin GhosttyKit checksum for current ghostty 2026-03-13 17:31:58 -07:00
Lawrence Chen
5dd93a8ab1
Merge pull request #1401 from manaflow-ai/task-cmd-shift-u-exits-cmd-shift-enter-mode
Exit split zoom when jumping to unread
2026-03-13 17:28:34 -07:00
Lawrence Chen
ccdadfa08c
Add CI guard for GhosttyKit checksum pins 2026-03-13 17:28:32 -07:00
Lawrence Chen
d0245d5069
Mark palette prefix constant nonisolated 2026-03-13 17:23:36 -07:00
Lawrence Chen
255ec0016c
Merge pull request #1334 from manaflow-ai/feat-cmux-themes-command
Add cmux themes command
2026-03-13 17:23:28 -07:00
Lawrence Chen
b2986ea6c8
Use observed query for palette refresh 2026-03-13 17:22:14 -07:00
Lawrence Chen
cd04bb8932
Merge origin/main into feat-cmux-themes-command 2026-03-13 17:22:12 -07:00
Lawrence Chen
09a98c911d
Guard notification focus failures 2026-03-13 17:21:40 -07:00
Austin Wang
3891a787f6
Merge pull request #1403 from manaflow-ai/cmux/cwd-regression
Fix split cwd inheritance while shell cwd is stale
2026-03-13 17:09:54 -07:00
austinpower1258
4bb212510e fix(cmux): preserve split cwd while shell cwd is stale 2026-03-13 17:02:48 -07:00
Lawrence Chen
6c9e4d14e5
Reset palette results on scope change 2026-03-13 16:06:40 -07:00
Lawrence Chen
6edcaa220b
Add Cmd+Shift+P backspace regression tests 2026-03-13 16:06:36 -07:00
Lawrence Chen
02854441e9
Clear split zoom when jumping to unread 2026-03-13 16:03:07 -07:00
Lawrence Chen
6a92010c6b
Merge pull request #1386 from manaflow-ai/task-close-tab-idle-confirm-regression
Honor shell state for close confirmation
2026-03-13 15:55:24 -07:00
Lawrence Chen
7bd199b625
Address cmux themes PR feedback 2026-03-13 15:48:49 -07:00
Lawrence Chen
1e90981947
Add unread jump split zoom regression test 2026-03-13 15:44:11 -07:00
Lawrence Chen
a99ee15672
fix: honor shell state for close confirmation 2026-03-13 15:43:04 -07:00
Lawrence Chen
cfa7b1d1a6
test: cover close-tab shell state regression 2026-03-13 15:43:03 -07:00
Austin Wang
9a7b52fe80
Merge pull request #1395 from manaflow-ai/issue-1393-cmd-w-close-last-terminal
Make Cmd+W close window when closing last terminal
2026-03-13 12:53:51 -07:00
austinpower1258
7f40e0097b fix(cmux): focus close confirmation actions 2026-03-13 12:53:20 -07:00
austinpower1258
9bfa3b9143 Make Cmd+W close the window when it closes the last terminal
Previously, Cmd+W on the last surface kept the workspace alive with a
replacement shell, unless the user toggled a hidden setting. This was
confusing—users expect Cmd+W to close the window when there's nothing
left.

Now Cmd+W (and the tab-strip X button) always close the workspace when
they close its last surface, and close the window when that was the last
workspace. Internal/programmatic closes (e.g. process exit, panel moves)
still spawn a replacement shell so the workspace stays alive.

Key changes:
- Track explicit user close gestures via markExplicitClose / onTabCloseRequest
- Remove the LastSurfaceCloseShortcutSettings toggle (now always-on)
- Use window.performClose for last-workspace window close
- Update tests to match the new behavior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 12:43:24 -07:00
Austin Wang
44c1a36d14
Merge pull request #1391 from manaflow-ai/issue-1390-cmd-t-crash
Fix crash when creating a new workspace
2026-03-13 11:17:46 -07:00
austinpower1258
c1998e347c Fix crash when creating a new workspace via snapshot-based state
Snapshot TabManager's published state (tabs, selectedTabId) at the start
of workspace creation so mutations don't bounce through Combine-backed
accessors mid-creation. Prevents crashes when adding a workspace via
Cmd+N, the new-workspace button, or any other creation path that
triggers re-entrant publishes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:15:03 -07:00
Austin Wang
03e9b81cf2
Merge pull request #1389 from manaflow-ai/issue-1321-vsc-opens-browser
Fix VS Code command palette to open desktop app
2026-03-13 10:45:08 -07:00
austinpower1258
fcd256a193 Fix VS Code command palette open target 2026-03-13 10:37:36 -07:00
Lawrence Chen
da8c616dfe
Fix cmux themes reload target resolution 2026-03-13 07:54:22 -07:00
Lawrence Chen
e52959a528
Fix crash when adding a workspace into an orphaned window context (#1380)
* Add orphaned window context regression test

* Skip orphaned workspace creation contexts

* Reorder orphaned context notification cleanup

---------

Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-13 07:44:44 -07:00
Lawrence Chen
3135b4b13e
Add Cmd+P all-surfaces search option 2026-03-13 07:43:57 -07:00