multica/server/internal/daemon/execenv
Jiayuan ce2b263ea5 feat(daemon): reuse workdir across tasks on same agent+issue pair
Previously each task created a fresh workdir via execenv.Prepare(), even
when resuming work on the same (agent, issue). This caused the agent's
session context to be out of sync with a blank code state.

Now the server returns prior_work_dir in the claim response, and the
daemon tries execenv.Reuse() first — which wraps the existing directory,
detects git worktree state, and refreshes context files. Falls back to
Prepare() if the prior workdir no longer exists. Workdirs are no longer
cleaned up after task completion so they remain available for reuse.
2026-03-29 18:40:29 +08:00
..
codex_home.go feat(daemon): inject skills into agent-native directories 2026-03-28 00:47:00 +08:00
context.go feat(daemon): inject skills into agent-native directories 2026-03-28 00:47:00 +08:00
execenv.go feat(daemon): reuse workdir across tasks on same agent+issue pair 2026-03-29 18:40:29 +08:00
execenv_test.go feat(daemon): inject skills into agent-native directories 2026-03-28 00:47:00 +08:00
git.go feat(logging): add structured logging across server and SDK 2026-03-26 10:57:11 +08:00
runtime_config.go feat(agent): add instructions field for agent persona/identity 2026-03-29 17:01:07 +08:00