Repository navigation
test(desktop): stop the agent's terminal commands in the real app, with real shells and real tmux - #8733
Conversation
…th real shells and real tmux An Electron suite for terminal cancel, which ships without a feature flag: Stop, sign-out (by the web app's logout and by the session cookie going away), switching Terminal off, the launch after an interrupted sign-out or a crash, and untracked runs on tmux without pane options. It asserts what is running and which panes exist, never which calls were made. - Agent and user commands ignore SIGHUP, SIGINT and SIGTERM, so only Sim's own stop can end them and a stray stop would show; each launch gets its own tmux server, and every process name carries a per-run suffix. - The fixture Sim and its helpers move to e2e/executor-sim.ts, shared with the background executor suite. - The macOS E2E job installs tmux so the tmux scenarios run in CI; elsewhere they skip when tmux is missing.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
… keep the lease constant private
… them, write a suite report, and keep the user pane through a session ended elsewhere
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
…ishes, so a retry keeps the original failure
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Terminal cancel ships without a feature flag, so this tests it in the real app, with real shells and a real tmux server. It asserts what is running and which panes exist, never which calls were made.
Builds on #8705, #8720, #8722 and #8725, all on staging.
runningsurvives a quit and the relaunch, and its pane can still be read;How it is built
TMUX_TMPDIR).e2e/executor-sim.ts, shared with the background executor suite.TERMINAL_CANCEL_REPORT_PATH(test-results/terminal-cancel-report.jsonin CI, uploaded on failure). A failed scenario attaches its calls, its panes, the app's output and the process list.Type of Change
Testing
Checklist