Repository navigation
fix(mimo): preserve canonical data when injecting status hooks - #9133
Closed
BluesYoung-web wants to merge 7 commits into
Closed
BluesYoung-web wants to merge 7 commits into
BluesYoung-web wants to merge 7 commits into
Conversation
…/mimocode-config-overlay
2 tasks done
Contributor
|
Thanks @BluesYoung-web — your report and this PR shaped the fix. #9132 is now fixed by #33668 (merged, with you credited as co-author). Closing as superseded. If you can retest on the next release, a quick confirmation on #9132 would be great. |
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.
Summary
MIMOCODE_HOMEhook sandbox with a PTY-scopedMIMOCODE_CONFIG_DIRoverlay/hook/mimo-codestatus reportingFixes #9132.
Related to #9048, which adds MiMo lifecycle and WSL/SSH plugin materialization. That PR should reuse this config-only ownership contract rather than creating complete temporary
MIMOCODE_HOMEdirectories with freshdata/cache/state.Root cause
MiMoCode 0.1.6 resolves credentials from
<Global.Path.data>/auth.json. Orca currently setsMIMOCODE_HOMEonly to install a config plugin, which also redirectsdata,cache, andstateinto an Orca-owned home. The current materializer mirrors config but leaves the new data directory without the canonical credential.The UI can start normally while the first provider request fails because the redirected process no longer sees the canonical auth store.
Architecture
The native integration now owns only:
It exports the overlay through
MIMOCODE_CONFIG_DIR. It does not set or cleanMIMOCODE_HOME, and excludes auth/runtime-state names from config-root mirroring.Each PTY receives a hashed directory. Ownership records bind the PTY to the real overlay root identity, make repeated construction idempotent, and ensure teardown cannot delete aliased user paths or a target whose ancestor was replaced.
Scope
This draft implements and verifies native local/daemon behavior. It deliberately does not create a MiMo overlay for SSH or WSL yet:
PR #9048 has the target-host relay/WSL plumbing needed for full coverage. The intended integration is to materialize this same config-only overlay on the execution host.
Security audit
auth.json, API key, provider token, data directory, memory, session store, or SQLite file is copied, logged, or committedTesting
Fresh verification after merging current upstream
main(1.4.144-rc.4):pnpm typecheckpassedgit diff --checkpassedpnpm lintreaches the upstream type-aware switch gate with 0 regular lint errors, then reports two current-main exhaustiveness errors in files untouched by this PR:src/renderer/src/components/native-chat/native-chat-session-option-labels.tssrc/renderer/src/components/skills/skill-freshness-group.tsxProbe command:
The probe never reads or prints credential contents.
ELI5
MiMo agent status hooks were overwriting MiMo’s real config and session data. Orca now uses a safe temporary overlay for hooks so auth, sessions, and cache stay intact while status reporting still works.