Repository navigation
Description
What happened
On 2026-11-09 on dev@b5b7dead1, continuing a chat saved in a folder whose enclosing checkout was excluded from Git discovery by GIT_CEILING_DIRECTORIES downloaded its frames and then failed:
handoff: open cell <id>: open <receiving-home>/v3/projects/copies/<id>/.cell/meta.json: no such file or directory
All twelve fresh two-home trials reproduced it: Go and hosted relays, with and without --no-host, three times per combination. The hosted trials enabled storage. The same continuation succeeds when the source folder is not ignored by the enclosing checkout.
Replication
Deterministic (no model).
From a checkout containing this regression test and the pinned native engine prepared by the normal build (an engine-availability skip does not count as acceptance):
GOFLAGS=-buildvcs=false go test -p=2 ./internal/syncsetup \
-run '^TestContinuingAChatInsideAGitDiscoveryBoundaryRestoresItsFilesInAnotherHome$' \
-count=1 -timeout=15mThe test uses the real native engine and Go relay, two fresh homes, and the real Continuer.Take door. It places the source under a work/ directory, which the enclosing repository ignores, and fences that repository out with GIT_CEILING_DIRECTORIES. It saves conversation words, closes the source and continues into the second home. No extra Git directory or provider credential is needed. With the production fix removed, the chat cannot be continued; its published capture lacks the files needed to open it.
Field (real models).
Pair two fresh homes against a local Go relay, or a local hosted relay with CAF_LIMITS.storageOpen=true. On the first computer run codeaf chat --no-host --one-model --model <configured-model> in a plain fixture folder below GIT_CEILING_DIRECTORIES that an enclosing checkout ignores, exchange a message and /quit. Open codeaf on the second computer and continue that chat. Repeat without --no-host as the control. Provider credentials depend on the configured model; the deterministic test needs none.
Where
readPolicy and policyFile.String in internal/cellstore/withheld.go, and Git discovery in internal/cellstore/ignored.go. The project's Git commands honor GIT_CEILING_DIRECTORIES, while the native capture's automatic gitignore directive previously discovered an enclosing checkout beyond that boundary and omitted the entire tree. Continuer.pullVault in internal/syncsetup/take.go later discovers the missing .cell/meta.json.
The fix
Use the same Git discovery boundary for native capture and the project's Git commands. An enclosing checkout outside that boundary cannot exclude the chat's words or its separate project's files. A Git repository inside the boundary keeps its ignore rules. Continuation hooks and copy filing need no timing changes.
Acceptance
- e2e: through
Continuer.Takewith two homes and the real engine, the continued chat opens with its original words, accepts another turn and files under its origin.ignored.txtfrom the separate project arrives with its original bytes. - e2e: the Go/hosted relay and default/
--no-hostmatrix completes continuation with readable chat metadata and transcript. - Unit: ordinary capture-plan validation, scope screening and capture-token rejection tests keep passing.
- The chat manual explains moving a chat with a Git discovery boundary, and the change entry's
invalidatesnames the previous empty-save behavior.
Activity
Ask Git itself where a movable chat's ignore rules stop
Print a closing sentence that arrived live but was not yet shown
Follow-ups to hosted storage opt-in: tools stop when a chat moves, cl…