Skip to content

fix: scope checkout ownership by harness - #122

Merged
qiankunli merged 1 commit into
mainfrom
fix/harness-owner-lock
Jul 31, 2026
Merged

fix: scope checkout ownership by harness#122
qiankunli merged 1 commit into
mainfrom
fix/harness-owner-lock

Conversation

@qiankunli

Copy link
Copy Markdown
Collaborator

Store checkout owner locks as harness-prefixed files so sessions from the
same harness contend while Claude and Codex remain independent.

Introduce SessionIdentity to resolve hook payloads and runtime environment
variables consistently across hooks and scripts.

Store checkout owner locks as harness-prefixed files so sessions from the
same harness contend while Claude and Codex remain independent.

Introduce SessionIdentity to resolve hook payloads and runtime environment
variables consistently across hooks and scripts.
@qiankunli
qiankunli merged commit e84b258 into main Jul 31, 2026
owner = read(repo)
harness = rec["harness"]
f = _lock_file(repo, harness)
owner = read(repo, harness)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 devloop code-review · deepseek-v4-pro

The harness parameter is shadowed by harness = rec["harness"] on line 362. While functionally correct (the normalized value is consistently used throughout the function), shadowing the parameter name can confuse readers about which value is in effect. Consider using a different local variable name (e.g., normalized_harness) or normalizing the parameter before constructing rec.

ccr:fp=41f3858d2097

@qiankunli

Copy link
Copy Markdown
Collaborator Author

🤖 devloop code-review · origin/main..HEAD · a44c6dff7 · models: deepseek-v4-pro×50, seed-2.1-pro×51, seed-2.1-turbo×50 · cost: 292s · ccr v1.9.0

1 finding(s)(1 条已作为独立 review thread 发布)

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.

2 participants