Repository navigation
feat(cloud-agent-next): key wrapper Kilo runtimes by directory - #7490
Conversation
d13cb96 to
7b3e03c
Compare
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe previous review SHA ( Notes
Files Reviewed (14 files)
Previous Review Summaries (2 snapshots, latest commit abce037)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit abce037)Status: No Issues Found | Recommendation: Merge Executive SummaryFallback to a full review: the previous review SHA ( Notes on the two prior findings
Files Reviewed (14 files)
Previous review (commit 7b3e03c)Status: 2 Issues Found | Recommendation: Address before merge Executive SummaryKeying every wrapper runtime by checkout directory silently drops the Worker's forced per-session isolation, so an env/secret-bearing route can share a warm runtime (and its environment) with a sibling in the same directory; the now-unconditional runtime-profile materialization can additionally clobber a sibling's shared HOME. No unbounded map/listener/timer growth (memory leak) was found in the changed code. Overview
Issue Details (click to expand)CRITICAL
WARNING
Files Reviewed (15 files)
Reviewed by deepseek-v4.1-flash · Input: 110.5K · Output: 26.8K · Cached: 2.1M Review guidance: REVIEW.md from base branch |
7b3e03c to
abce037
Compare
Share compatible worktree runtimes while preserving per-session runtime and HOME isolation for existing allocations. Keep sibling release and terminal routing scoped to runtime ownership.
abce037 to
cec0e95
Compare
Warning
Do not merge or deploy this PR alone. Merge it together with #7491.
cloud-agent-nextdeploys from main on a schedule, and the container image ships in the samewrangler deployas the Worker. With the current Worker, this wrapper puts the per-session proxy handles of one directory into one Kilo process, and each handle overwrites the other.Summary
Part 2 of 3 in a stack. Base: #7489.
runtimeIsolationfield and ignores it. HOME issha256(scopeId + "\0" + directory), so chats in one worktree share one HOME, and two worktrees or two directories do not.kilo-api.ts). A deleted chat now stops at once. Before, it ran until it was idle.main.tsdispatcher is extracted, sodirectory-key-flip.test.tscan drive it.src/shared/runtime-credential-proxy-handle.tsholds the handle audience. The Worker in feat(cloud-agent-next): share one scoped credential per worktree #7491 also uses it.Verification
Visual Changes
N/A
Reviewer Notes
docs/control-plane.md) before that merge, because the scheduled production deploy ships it.cloud-agent-nexttypecheck (Worker and wrapper), unit tests (6,329 pass), wrapper tests (1,185 pass, 0 fail), oxlint and oxfmt.