You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make workdir consistent with the sidecar structure. (#359)
* Make workdir consistent with the sidecar structure.
Chunk sidecars use /home/user as the home dir, this makes the command
logic reference that known location instead of relative paths.
* Address review: validate workspace path depth, derive sidecar home from env
- ResolveWorkspace now returns (string, error) and errors when repo is
empty with no saved workspace, preventing rm -rf on the bare home dir
- Replace hardcoded /home/user constant with sidecarHome() which reads
CHUNK_SIDECAR_HOME env var, falling back to /home/user
- Update callers in sync.go and validate.go
- Add tests for the empty-repo error and env var override
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: webster <michael@webster.fyi>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments