Repository navigation
fix(mods): restore reliable Goal run lifecycle and completion - #2353
Conversation
session.saveActiveRevision runs after every turn and session.configure on every model, mode or permission switch. Both read and parsed the whole transcript under the host lock, so a 40 MB session paid 80-160 ms per call and every other request queued behind it. A session without revision rows now returns from the index alone; a regenerated one reads an id-closed suffix back to its latest revision root, which yields the same positions and keep-last contents as the full read, and skips restating a root whose stamp is already right. Configure returns the summary without reading messages. Imports drop pager stamps because no revision rows come with them, as forks already do. closes vastsa#2348
Fixed endpoint offsets drift when worker cards grow for wrapped content or live controls. Build the stem from per-card segments so branches remain centered and both wide and narrow layouts share continuous endpoints. Add an isolated browser fixture covering mixed heights and singleton layouts against the production stylesheet. Fixes vastsa#2350
Keep Goal execution and accounting independent from input preferences so replacement and completion cannot leave an active run looping forever. Preserve permissions and stored runs while removing redundant closeout checks and unused unit translations. Exercise the real proxy and Host settlement paths in CI.
|
@new-Beginner is attempting to deploy a commit to the vastsa's projects Team on Vercel. A member of the Team first needs to authorize it. |
A cancelled old turn may receive a gate response after its claim is gone. Keep the stale-reply guard ahead of cancellation so late output cannot be reclassified as a current-turn abort.
perf(host-core): 每轮结束和切换模型时不再读取整个对话记录
…tor-centers-20261114 fix(chat): align delegation connectors with actual card centers
Prepare the next desktop preview from current main so testers can install its cross-platform build and read the upcoming stable notes in their locale. Carry the published 0.22.0 notes forward, refresh the bundled model catalog, and align version surfaces before tagging.
chore(release): prepare v0.23.0-beta.1
|
Independent review progress on ecb25d2: I reproduced the continuation defect using the production Main coordinator with a controlled Host boundary. On base 30b026e, an active Goal continuation with session input mode Fresh local Rust validation passed: 50 ModeRun tests and 4 completion-report migration tests (including populated v30 preservation, backup, rollback and older-chain equivalence). Full local process qualification is still pending because the reused workspace runtime/shared artifacts are incompatible; that environmental collection failure is not attributed to this PR. The PR currently conflicts with main: primarily synchronized version surfaces (main is now 0.23.0-beta.1, while this branch carries 0.21.2), shared protocol constants, and the E2E test plan. The earlier statement that latest main is included no longer applies. Landing must preserve current main's version and both branches' protocol/documentation changes, then validate the refreshed integration candidate. Keeping this open pending the remaining lifecycle/process and integration checks; no approval or merge yet. |
|
Independent review progress on ecb25d2: resolved the local dependency mismatch with a task-local frozen-lockfile install (the reused Pi dependency lacked hosted-search). Candidate shared/agent-runtime/agent-host/host-runtime builds and sidecar bundle now pass; fresh locked Host build passes. Five Desktop suites pass 74/74. I also independently ran the production sidecar → stdio proxy → real Host → Main completion acceptance: all six scenarios pass (finished, legacy, blocked, infrastructure fault, Bash gate, saved snapshot), including no unwanted continuation, duplicate settlement and restart assertions. Only the model endpoint is a loopback fixture; no paid provider/user profile used. Not yet approved: explicit Goal replacement process qualification and final integration remain outstanding. A fresh read-only merge against current main still reports conflicts in version surfaces, shared protocol and E2E documentation. These results apply to the PR head, not a resolved current-main integration. I will preserve current main versions and both protocol/documentation changes when resolving integration, then rerun the relevant gates. |
Keep the Goal fixes compatible with current main without rewinding the prerelease metadata or discarding either branch\x27s protocol and E2E coverage. Preserve both histories so the shared PR can advance safely.
vastsa
left a comment
There was a problem hiding this comment.
Independent acceptance of integrated head 28dcdd4:
- Previously reproduced baseline MODE_NOT_STAGED on automatic Goal continuation after the input preference returned to Agent. The fix separates input preference from the durable run claim and supplies explicit Goal replacement admission. Completion is now authoritative and durable across settlement/restart.
- Reviewed integration delta from ecb25d2: current main version surfaces are preserved and both connector and Goal E2E documentation remain. No new Goal implementation drift in this refresh.
- Fresh locked Host build and shared build pass. Independently ran production Main admission plus isolated real Host: automatic Goal continuation retains Auto permission, second Goal replaces only the old run, accounting stays with the old run, new budgets reset, transcript turns remain distinct, queue drains, Stop succeeds. Sidecar boundary is scripted for this replacement test.
- Independently reran all six production sidecar -> stdio proxy -> real Host -> Main completion scenarios (finished, legacy, blocked, infrastructure fault, Bash gate, snapshot): no unwanted continuation, duplicate settlement and restart safe. Only model endpoint is loopback. No paid provider or installed-client qualification claimed.
- Five Desktop suites: 79 passed, zero failures. Diff whitespace check passes; six official code/docs/base CI checks succeed. Vercel preview is an external team authorization failure, not counted as passed.
- Remote main 39954db is an ancestor of the tested head. Fetched GitHub merge candidate e41c989 has exactly the same tree 9e2e4be790f95a8a814fa9fbd615d12bdaca0ff4.
Root cause and neighboring lifecycle regressions are covered; approve for SHA-guarded merge.
Current integration refresh
28dcdd4db1e0f5feb3fe650e660de31f234c9899. Incorporated main:39954dbb3375bd2037e5203e147346b7bbd33240.0.23.0-beta.1exactly; both the delegation-connector and Goal-completion E2E sections are retained intact. Both original histories are preserved; no force push or replacement implementation.e41c989c3fdf6814a8e903acd301bef9cd0ab043combines current main and this head. Its executable tree exactly matches the tested head:9e2e4be790f95a8a814fa9fbd615d12bdaca0ff4. The PR is conflict-free and remains unmerged.Authorization required to deploy.The requester confirmed with the maintainer that this is expected and excluded it from this task's code-check acceptance. No deployment settings or permissions were changed; this is not a successful deployment claim.Summary
Fix the staged Goal lifecycle without replacing the current ModeRun architecture.
Compatibility and safety
Legacy completion calls and immutable snapshots remain supported. Schema 30/31 migrations back up and preserve populated databases, queue intent, elapsed accounting, and gate evidence. Reports cannot change objectives, budgets, permissions, or user controls. Host report validation proves authorization/structure/state, not the truth of model evidence.
All synchronized version surfaces now retain current main's 0.23.0-beta.1. The earlier local 0.21.2 installer is preserved outside this PR. No installer, profiles, logs, credentials or dependency trees are committed; no tag or release is published.
Earlier candidate verification (historical)
Only deterministic loopback model fixtures were used. No paid provider, user profile or running user Desktop is used for tests.
Task candidate: ecb25d2
Base main: 30b026e
The earlier candidate's six GitHub Actions checks succeeded; the refreshed integration's six checks also succeeded as recorded above.
The stale-reply check is intentionally retained ahead of cancellation. A deterministic regression reproduced the changed priority after its removal; restoring the boundary passes all 548 targeted runtime tests and all six real completion scenarios.
Earlier check status (before main refresh)
All six official code/integration checks completed successfully for
ecb25d2bb742b397257e64ac095822ef93cd9ea4. That earlier synthetic merge tree matched the tested candidate against 30b026e; this is historical evidence, not qualification of the refreshed integration.The Vercel authorization-only preview status remains unchanged. The requester confirmed after checking with the maintainer that this is expected and is not a code-validation blocker. It is not bypassed or falsely reported as a successful deployment.