3.1 KiB
3.1 KiB
Task: Integrate Agent Server sleep restart fix
Identity
- Task ID: 20260901-integrate-agent-stall-4f2c8a91
- Mode: Integration
- Branch: main
- Worktree: D:\Datas\OthersProjects\makelore
- Base commit:
738eda1430 - Owner: codex
- Status: Completed
Scope
- Merge exact feature commit
12d7588cinto localmain. - Preserve the already-integrated model-reasoning capability behavior.
- Record the integration in canonical current state without changing Pi, Provider, packaging, or replay contracts.
Intent And Constraints
- Pi
0.84.2remains the sole Coding runtime and one Main-owned Agent Server remains the parent topology. - Background sleep must not stop work that begins during cleanup, and start racing stop must create one fresh server after stop settles.
- Accepted and uncertain prompts must never be replayed automatically.
- Stop on any merge conflict or semantic conflict; do not choose by merge order.
- Do not package, install, deploy, push, or change dependencies in this integration task.
Plan
- Verify the exact source commit and a conflict-free merge tree against current
main. - Merge the source branch with an explicit merge commit.
- Record the integrated behavior and remaining installed-package gate in canonical current state.
- Run focused lifecycle tests, typecheck, lint, production build, and documentation drift checks.
- Commit integration memory, complete the task, and release ownership from a clean worktree.
Outcome
- Verified source commit
12d7588b3ebd4d192c2e14ae285d4f6ddebeeb42and conflict-free merge tree63750df00cda0da00304725b6f0a8c17dd5e09b0against currentmain. - Merged the exact source into local
mainasc2137c9f3f2e05441064cc90bfeed115363ac04ewithout conflict. - Preserved the already-integrated model-reasoning capability changes and the Pi
0.84.2single-Agent-Server architecture. - Recorded the background-sleep recheck and serialized stop/start behavior in canonical current state.
- No package, installation, deployment, push, dependency, Provider, or replay-contract change was performed.
Verification
git merge-tree --write-tree HEAD 12d7588returned conflict-free tree63750df00cda0da00304725b6f0a8c17dd5e09b0before merge.- Merged-main focused lifecycle run: 4 files / 9 tests passed.
pnpm run typecheck: passed.pnpm run lint:check: zero errors and the repository's existing five warnings.pnpm test: 216 files passed; 1,780 tests passed and 2 skipped.pnpm run build:vite: Renderer, Electron Main, Preload, and utility production builds passed with existing build warnings only.
Follow-ups
- Build, verify, and reinstall a Windows package from integrated
main, then repeat the reported prompt-after-idle interaction. The currently installed application still contains the old lifecycle code.
Promotion Candidates
- Resolved: recorded the exact source and merge commits, lifecycle behavior, no-replay invariant, and remaining installed-package gate in
.project-docs/30-worklog/current-state.md. No ADR or architecture rewrite was needed because the fix enforces ADR-006.