multica/server/internal
Jiayuan Zhang 678266ec87 feat(daemon): add per-task isolated execution environments
Introduce the `execenv` package that creates isolated working directories
for each agent task. Supports git worktree mode (code tasks) and plain
directory mode (non-code tasks), with `.agent_context/issue_context.md`
injected into the workdir for Claude Code to discover.

Key changes:
- New `server/internal/daemon/execenv/` package (Prepare/Cleanup)
- `runTask()` now creates isolated env instead of using shared reposRoot
- Prompt updated to reference `.agent_context/` files
- Add `WorkspacesRoot` config (default ~/multica_workspaces)
- Add `KeepEnvAfterTask` config for debugging
- Default agent timeout increased from 20min to 2h
- `CompleteTask` now forwards branch name to server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:41:52 +08:00
..
auth Add workspace management and isolated worktree environments 2026-03-23 18:12:11 +08:00
cli fix(cli): address code review findings 2026-03-24 15:49:32 +08:00
daemon feat(daemon): add per-task isolated execution environments 2026-03-25 12:41:52 +08:00
handler refactor: remove repository field from issues 2026-03-24 18:12:06 +08:00
middleware Add workspace management and isolated worktree environments 2026-03-23 18:12:11 +08:00
realtime test: add comprehensive test suite (Go unit/integration, Vitest, Playwright E2E) 2026-03-22 11:50:25 +08:00
service refactor: remove repository field from issues 2026-03-24 18:12:06 +08:00
util feat(server): add task service layer and daemon REST protocol 2026-03-23 18:34:51 +08:00