Skip to content

feat(mecatui): modernize Dream modal surface and interaction - #2178

Merged
jbeda merged 8 commits into
mainfrom
issue-1901-dream-viewport
Oct 9, 2026
Merged

jbeda merged 8 commits into
mainfrom
issue-1901-dream-viewport

Conversation

@jbeda

@jbeda jbeda commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Modernize Dream end-to-end as a dynamically created modal surface, removing legacy Model-owned Dream state and key/result/render routes. Fence asynchronous results by open-surface owner, request, and phase; preserve confirmation and same-decision recovery semantics.
  • Fit every state to parent-offered geometry with a 128-cell outer cap and genuinely close-only compact fallback. Keep bounded plan/receipt readers, resize clamping, confirmation-back position, and provenance markers on wrapped untrusted fields.
  • Keep project-memory and user-model targets visible, skip disabled targets during selection, and add click-to-select without generation. Use bounded list wheel scrolling independently of selection; capture all modal wheel/pointer input so it never reaches the hidden conversation.
  • Show safe, actionable generation errors without connection details. Deliver content-free failure stages and validated numeric provider status to server diagnostics; preserve deadline wire classification. Log neither arbitrary provider error text nor memory/credential payloads.
  • Document shared list interaction conventions, the completed surface migration, and consequential Dream/recovery behavior.

Validation

  • Focused UI, bounded, client, app, and server tests
  • task docs
  • task test
  • task lint
  • task test:race
  • go run ./cmd/mecademo (tool call, permission ask/approval, result)
  • Focused race check after restoring existing help-discoverability assertions

The initial concurrent full-gate batch hit timeouts and unrelated microVM/automatic-learning fixture failures. Sequential reruns of the complete test and race gates passed. No golden updates or generated-contract changes were needed.

Review

Independent spec, standards, test-adequacy, security, architecture, and reuse reviews covered the complete expanded change. Fixed duplicate Dream-owned geometry calculation, deadline categorization, weak stale-hit assertions, hostile rendered-field/grapheme coverage, real Build-to-diagnostic metadata delivery, and help-discoverability coverage. The parent render path is the only geometry authority, including pre-View navigation. Existing Esc/back and close-without-server-cancellation behavior remains intentional.

Closes #1901. Relates to #1742 and #1589; neither parent issue is closed by this PR.

@jbeda jbeda changed the title feat(mecatui): bound Dream plan and receipt browsing feat(mecatui): modernize Dream modal surface and interaction Oct 7, 2026
@jbeda
jbeda force-pushed the issue-1901-dream-viewport branch from 172a69d to cff04e8 Compare October 9, 2026 00:04
jbeda and others added 6 commits October 9, 2026 09:00
Move Dream onto the shared surface lifecycle, bound all states to parent geometry, add safe target mouse selection and disabled-target navigation, and retain safe server-side generation diagnostics.

Co-authored-by: Mecatl <[email protected]>
Separate plan metadata and operation participant blocks with whitespace, emphasize operation headings, and distinguish field labels from quoted values using semantic theme styles.

Co-authored-by: Mecatl <[email protected]>
Keep plan values in primary text, tighten redundant spacing, and match the Models picker selection treatment. Document the shared list pattern and prove every rendered plan field remains reachable.

Co-authored-by: Mecatl <[email protected]>
Remove Dream-specific handling from parent render, resize, key, and wheel paths. Refresh presentation through a shared surface capability, prepare geometry uniformly, and invalidate undisplayed hit frames. Name and document Dream key result flags.

Co-authored-by: Mecatl <[email protected]>
Keep approval reader anchors during live presentation refresh, apply uniform preparation to admission recovery, and enforce safe zero-offer actions across modal owners with positive recovery and frame-isolation tests.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda force-pushed the issue-1901-dream-viewport branch from cff04e8 to b085136 Compare October 9, 2026 16:00
@jbeda
jbeda merged commit f50dd93 into main Oct 9, 2026
37 checks passed
@jbeda
jbeda deleted the issue-1901-dream-viewport branch October 9, 2026 18:45
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 13, 2026
2 tasks
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.

mecatui: evaluate bounded.Viewport for Dream review

1 participant