Skip to content

fix(hub): a folder given in full matches one allowed with ~ (OFF-143) - #657

Merged
renyuanz merged 1 commit into
mainfrom
fix-home-dirs
Nov 19, 2026
Merged

renyuanz merged 1 commit into
mainfrom
fix-home-dirs

Conversation

@renyuanz

Copy link
Copy Markdown
Contributor

A bridge allowed to start agents in ~/workspaces/Zalify refused a start in /Users/<me>/workspaces/Zalify ("That folder isn't one this token may start in"): the Hub's check compared the folders as text. offdesk.so's AI teammates keep the folder in full, so handing a task to one failed.

TokenAccess::allows_dir_at(cwd, home) reads ~ as the machine's home (from its registration) on both sides; with no home known it compares text as before. The node's real-path check (symlinks, ..) is unchanged.

Tests: token_access_keeps_to_its_machines_and_folders covers ~ against a full path both ways, a neighbour (notesy), another user's home, .., and no home known.

🤖 Generated with Claude Code

A bridge allowed to start in ~/workspaces/Zalify refused a start in
/Users/me/workspaces/Zalify: the Hub compared the folders as text. It now reads ~ as
the machine's home on both sides; the node still checks real paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@renyuanz
renyuanz merged commit 1ca07cd into main Nov 19, 2026
12 checks passed
@renyuanz
renyuanz deleted the fix-home-dirs branch November 19, 2026 14:33
@renyuanz renyuanz mentioned this pull request Nov 19, 2026
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