Fix CLI notify integration regression tests
Keeps the CLI notify regression fixtures and assertions in this PR, including unwrap guards, mock responses, and test fixtures. The CLI socket deferral and SSH option changes moved to https://github.com/manaflow-ai/cmux/pull/13093.
The regression tests assert the corrected zero-delay text, “Retrying now (attempt 1/1).” The VM dev, layout, and env tests require the product behavior in the split PR because those commands authenticate on their first request after local validation.
Validation: Python and static checks pass. No local Xcode tests were run.
Summary by CodeRabbit
- Tests
- Expanded coverage for CLI VM development, SSH access, cloud VM attachment, and workspace reuse workflows.
- Added validation for password handling, retry messaging, workspace status updates, and concurrent workspace creation.
- Strengthened checks for error responses and ensured lease credentials are not exposed in command output.
- Updated integration scenarios to reflect current managed and unmanaged VM connection flows, including workspace discovery and binding behavior.
Replaces https://github.com/manaflow-ai/cmux/pull/13079 (same commits, head branch moved into the org so it gets the build cache and can be kept current with main).
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Updates the CLI notify integration regression tests to match current product behavior and harden assertions. The retry message now expects "Retrying now (attempt 1/1).", the delayed SSH credential relay test synchronizes via FIFO handshake instead of sleeping, and tests confirm passwords and lease tokens never leak into stdout or stderr. Product behavior changes for CLI socket deferral and SSH options are split into another PR; static checks pass.
Test updates
- Added unwrap guards to idempotency and bind assertions, and snapshot-scoped resume bind requests for clearer failure messages.
- Expected
surface.catalogbeforesurface.new_terminalandworkspace.renamein the VM SSH sequence. - Layout apply now uses the
--reuseflag to reflect atomic workspace reuse. - Credential prompt fixtures validate the password value, and attach tests use the real expect state machine.
- The delayed SSH relay handshake is bounded with timeout guards so the test always terminates.
- VM SSH tests run with an isolated
HOMEand expect unmanaged-provider errors under the newvm_errorenvelope.