Repository navigation
fix(ui): display resolved agent workspace and effective model consistently - #129701
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 00:19
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
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
Root cause
The Gateway already returns each agent's authoritative resolved workspace and effective model. Both the shared Control UI context builder and a second independent Overview projection instead prioritized the global configured workspace over that resolved roster value. They also rendered an agent model override as a complete model even when the override contained only a fallback list, discarding the inherited primary and displaying
-.The repair restores producer ownership: explicit unsaved agent workspace edits still win; the resolved roster workspace comes next; and global defaults are used only when no agent-specific value exists. The shared owner resolves primary and fallback ownership independently, preserving explicit empty fallback arrays and dirty per-agent model edits. Overview now consumes that same canonical projection as Channels and Automation.
Before
The selected Writer agent incorrectly displayed
/tmp/agentsand no primary model despite its resolved/tmp/agents/writerworkspace and inherited model:After
The same real Chromium flow now shows the correct agent-owned workspace and inherited primary with its agent-owned fallback:
Verification
node scripts/run-vitest.mjs ui/src/pages/agents/panels-overview.test.ts ui/src/lib/agents/display.test.ts— 46 tests pass.OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/agent-model-fallback-ownership.e2e.test.ts— six real Chromium scenarios pass, covering inherited fallbacks, strict explicit primaries, explicitly disabled fallbacks, agent-owned fallbacks, and fallback-only overrides.OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 pnpm check:changed— complete core-test/UI typechecking, formatting, lint, i18n, and architecture gates pass; the unchanged dead-export scan had already passed in the preceding full run.Risk
Low: presentation-only ownership correction; no persistence, protocol, configuration shape, security policy, or Gateway runtime changes. Existing draft precedence, explicit empty fallback arrays, file-owned workspace values, and agent-specific model primaries remain covered.