fix(desktop): tool edits and failed rebuilds keep the session profile - #104982
Merged
Merged
Conversation
teknium1
marked this pull request as draft
September 7, 2026 10:46
teknium1
marked this pull request as ready for review
September 7, 2026 11:15
teknium1
force-pushed
the
fix/desktop-profile-config-atomic-e461
branch
from
September 7, 2026 12:53
96d7c44 to
dd0c9be
Compare
Contributor
૮ >ﻌ< ა ci reviewran on dd0c9be — test: enforce fail-closed project profile targeting
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tool changes and rebuild failures now stay attached to the live Desktop session's profile and reachable database owner.
Stacked follow-up to #104842, based on its exact head
194074d75528326843f07bceb0bc88f7cffc9c34; base branch isfix/desktop-profile-rebuild-store, notmain. The original branch and its existing scoped validation receipt are unchanged.tools.configureconfig load/save, reset, and response readback from the live session'sprofile_home; the real client sendssession_idwithoutprofile.Root cause: the previous fix scoped reconstruction but not the configuration write, and transferred ownership before fallible model-target preparation and session installation.
Live repro
Actual isolated
hermes serve, WebSocket dispatch, real AIAgent construction and SQLite with a credential-free loopback model. Failure arms inject one model-config read error through a probe-only bootstrap; rebuild predicates, construction and teardown remain production code.cba2b4dfe66172af253fd92e293aebccc0f6c011Each final live arm persisted four rows in the worker store and zero in the launch store. Four final controls/failure arms passed on the committed head. All probe listener ports were closed afterward. Probe commands use
evals/desktop_bug_campaign/persistence_live.py --repo <checkout> --out <receipt-dir>, with--observe/--failureand optional--reset.Validation
flockandscripts/run_tests.sh -j 1.git diff --checkpassed.Addresses the independent-review findings for #104079. Prior substantive work remains in #104842 with @HexLab98 (#104143) and @liuhao1024 (#101740) credited there; this PR is only the corrective delta. No issue closure or merge is requested automatically.
Campaign: #104904.
Infographic
Final-review corrections
tools.configuresession ID returns existing error 4001 before config read/write; genuinely sessionless global settings remain supported.test_config_read_guardrejected raw config YAML readback in the live eval. It now usesread_user_config_raw(explicit_path); no allowlist relaxation. Aggregate failure was downstream only.50aa1ba618c50ee14f664aff17c9ddf5de398555(4 worker message rows, 0 launch rows; all 6 unavailable-profile requests rejected). Raw wire receipts and SHA-256 evidence are recorded in the campaign final results. Parent accepted the exact-head source, independent review and live evidence. CI on the new push and broad combined coverage are separate; no CI-green or merge claim.