Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-review-classifier/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 2fb6b39f9f review classifier: every ACP run gets one shared, empty cwd
opencode writes the session's cwd into the system message's environment
block ("Working directory: …", "Workspace root folder: …"), ahead of the
PR's user message. Each ACP classification ran with its per-call scratch
directory, /tmp/review-classifier-<pid>-<counter>, as cwd, so every call
sent a different system message and the provider's prompt cache could not
match past it.

The session's cwd is now one fixed directory, <tmp>/review-classifier-acp-cwd,
shared by every run. HOME (the config, system.md and opencode's own state)
stays a directory per run, removed after it, as before. With no tool and
no project config nothing writes into the cwd: a live opencode 1.15.10 run
through initialize, session/new and a prompt left it empty, with its state
all under HOME. So concurrent runs can share it, and no state carries from
one run to the next.

Refs #5245
2026-10-14 14:45:59 +02:00
..
acp.rs review classifier: every ACP run gets one shared, empty cwd 2026-10-14 14:45:59 +02:00
aggregate.rs swarm-review-classifier: answer a try-out with one claude run per classification 2026-10-12 13:11:21 +02:00
answer.rs review classifier: truncate an over-long reason instead of dropping the verdict 2026-10-13 21:23:03 +02:00
child_env.rs review classifier: run on ACP when the swarm settings choose it 2026-10-14 10:14:36 +02:00
cost.rs review classifier: commit shas and index lines stay out of the prompt 2026-10-14 13:52:36 +02:00
main.rs review classifier: every ACP run gets one shared, empty cwd 2026-10-14 14:45:59 +02:00
prompt.rs review classifier: commit shas and index lines stay out of the prompt 2026-10-14 13:52:36 +02:00
run.rs review classifier: every ACP run gets one shared, empty cwd 2026-10-14 14:45:59 +02:00