coily git commit races on a shared working tree, crosses commit messages #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-22T13:13:10Z - https://github.com/coilysiren/coily/issues/321
Symptom - Two coily sessions ran
coily git commitagainst the sameinfrastructureworking tree within seconds of each other. The resulting commit4dd385ccarries one session's commit message (fix: pin signoz clickhouse-operator to kai-server,closes #273) but the other session's file content (deploy/ntfy.ymlonly). The messages crossed.Fallout
#273(signoz) was closed by4dd385c, but that commit does not contain the signoz fix -deploy/observability/signoz-values.ymlwas left uncommitted in the working tree.#274landed under the wrong message and never closed its issue.Cause - Two interactive agent sessions share the bare
~/projects/coilysiren/infrastructurecheckout.coily git commitis not isolated against a concurrent commit in the same repo - the shared.git/COMMIT_EDITMSG/ index race crosses messages.Options
coily dispatchalready uses per-session worktrees; interactive sessions do not. Either steer concurrent interactive work onto worktrees, or havecoily git committake a lock on the repo for the add+commit window.coily git commitcould refuse when the index contains paths the caller did not stage this invocation.