Fix important issue regressions

Closed
AZ
6mo ago
+691-84

Summary

  • Make remote SSH file browser roots follow the workspace cwd and open remote files through an SSH-backed preview copy instead of treating remote paths as local files.
  • Resolve Claude Workflow directory sessions to the sibling resumable JSONL transcript so auto-resume does not use a non-resumable container id.
  • Move surface.read_text scrollback merge/tail/base64 work out of the main-actor capture path and reduce tail/scoring allocations.

Issues

Verification

  • ./scripts/setup.sh
  • ./scripts/reload.sh --tag bugfix

Notes

  • I did not run local xcodebuild tests because local test actions are prohibited for cmux; the PR includes focused unit coverage for the changed behavior.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Summary by cubic

Fixes regressions in remote SSH browsing, Claude Workflow auto-resume, and terminal text capture, addressing #5237 #5224 #5221 #5209. Remote files open reliably, sessions resume correctly, and terminal reads are faster.

  • Bug Fixes

    • SSH file browser roots now follow the workspace cwd, and remote files open via an SSH-backed preview copy.
    • Claude Workflow directory sessions resolve to the sibling resumable .jsonl transcript for auto-resume.
  • Refactors

    • Moved scrollback merge/tail/base64 work off the main actor and added a lighter tail algorithm to reduce allocations.
    • Added streaming SSH download and pipe copying to lower memory usage during remote previews.

Summary by CodeRabbit

  • New Features

    • Added support for previewing files from remote SSH workspaces by materializing them locally
    • Added ability to configure a custom working directory for remote SSH workspace roots
    • Improved terminal text output handling and selection logic
  • Tests

    • Added test coverage for remote workspace root path configuration
    • Added test coverage for remote file preview materialization
    • Added test coverage for Claude workflow session resumption