Skip to content

fix: restore per-model editor and stabilize model dropdown width - #104

Merged
luoxuanzao merged 5 commits into
mainfrom
fix/model-editor-flat-fields
Nov 26, 2026
Merged

luoxuanzao merged 5 commits into
mainfrom
fix/model-editor-flat-fields

Conversation

@luoxuanzao

@luoxuanzao luoxuanzao commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The daemon catalog switched from rich context_config/thinking_config blocks to flat availableContextWindows/efforts/supportsDisabled fields. Two consumers still read only the rich shapes:
    • the runtime probe, so every model looked uneditable and the pencil entry disappeared;
    • the per-request resolveModel policy, so the editor's disable-thinking override was silently dropped whenever a live catalog entry was present.
      Both now map the flat shapes with a rich-first fallback, covered by unit tests.
  • Hovering a model row revealed the edit affordance in flow, widening the content-sized dropdown whenever the longest row was hovered. Meta and the affordance now stack in one trailing grid slot sized to the wider of the two, so hover swaps visibility without resizing rows.
  • The list pane is additionally capped by its anchor width, so narrow sidebars ellipsize long model names instead of overflowing and clipping at the leaf edge.

Verification

  • npm run typecheck
  • npm run lint
  • npm run test (3611 passed)
  • npm run build
  • npm run release:check
  • npm run audit:prod
  • Tested affected qodercli behavior against a real CLI when applicable (live daemon probe confirmed the flat catalog shape; deployed build verified in a real vault, wide and narrow sidebars)

Safety

  • No credentials, private vault content, internal URLs, or personal paths are included
  • User-visible changes are documented in CHANGELOG.md

Co-authored-by: QoderAI (Qwen 3.8 Max) qoder_ai@qoder.com

luoxuanzao and others added 5 commits November 26, 2026 09:05
The daemon catalog replaced context_config/thinking_config with flat
availableContextWindows/efforts fields, leaving the editor without tiers
or efforts and hiding its entry point. Map the flat shapes as a fallback
so the pencil editor returns while old servers keep working.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
Hovering a row revealed the edit affordance in flow, widening the
content-sized dropdown whenever the longest row was hovered. Stack meta
and the affordance in one trailing grid slot so swapping them never
resizes the row, and cap the list by its anchor width so narrow sidebars
ellipsize instead of clipping at the leaf edge.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
…policy

The resolveModel provider validated editor overrides against the legacy
context_config/thinking_config blocks. Daemon catalogs carry flat fields
instead, so a live entry without thinking_config silently dropped the
disable-thinking override. Read the flat flags and window/effort lists
with the same rich-first fallback the probe uses.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
Review follow-ups: skip the anchor-width cap when the anchor measures
zero (hidden view) instead of collapsing the list, keep the 340px ceiling
in wide panes, and apply the cap before measuring for the flip decision.
Treat empty rich catalog blocks as absent in the model policy, matching
the probe, and cover the trailing slot and width cap with unit tests.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
@luoxuanzao
luoxuanzao merged commit 7e373e0 into main Nov 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant