Skip to content

fix(cli): prevent special files from hanging workspace connections - #26

Merged
Kinfe123 merged 1 commit into
mainfrom
fix/connector-special-files
Oct 17, 2026
Merged

Kinfe123 merged 1 commit into
mainfrom
fix/connector-special-files

Conversation

@Kinfe123

Copy link
Copy Markdown
Collaborator

A write to a named pipe currently blocks the native file connector indefinitely, leaving the browser waiting and preventing further file operations. Restrict connected-workspace I/O to regular files, omit special files from listings, and validate opened handles before truncation. Unix opens are nonblocking so a FIFO replacement during open cannot hang the process.

The regression uses the real CLI and a real named pipe. It failed by timing out before the fix and now verifies that reads/writes are rejected and the connector can still read a normal file afterward.

Validation passed locally:

  • cargo fmt --all --check, cargo clippy --all-targets -- -D warnings, cargo test (84 tests), native build, and python3 scripts/test-setup-pty.py.
  • Connector integration tests with a disposable PostgreSQL database (7 passed, no skips).
  • Native plain/UI and whole-filesystem attachment with real file reads, edits, read-only enforcement, and revocation.

No release or production deployment is included. Native Windows is not a published release target; the Unix-specific FIFO regression runs on macOS/Linux.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tress Ready Ready Preview Oct 16, 2026 6:48pm UTC

Request Review

@Kinfe123
Kinfe123 marked this pull request as ready for review October 16, 2026 18:52
@Kinfe123
Kinfe123 merged commit 5060097 into main Oct 17, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 568cacf7 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant