Skip to content

feat(mecatui): add explicit Saved memory pointer actions - #2948

Open
jbeda wants to merge 1 commit into
mainfrom
impl/769-saved-memory-modal
Open

jbeda wants to merge 1 commit into
mainfrom
impl/769-saved-memory-modal

Conversation

@jbeda

@jbeda jbeda commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make Saved memory entry rows select/reveal only, including wrapped keys and partially visible description continuations.
  • Add explicit Inspect/Close and detail Back controls using the same semantic actions and configured bindings as keyboard input.
  • Preserve independent list/detail browsing, pending-read ownership, compact fallback, no-mouse behavior, and current-frame pointer routing.

Part of #769; this completes only the Saved memory list/detail slice, not the mouse-support umbrella or adjacent modals.

Implementation notes

  • Row targets retain raw Entry.Key identities while hit rectangles come from sanitized, rendered physical lines. Repeated clicks never fetch details; Inspect retains and revalidates the selected key even when wheel browsing moves it offscreen.
  • Footer controls are measured before allocating body rows. A non-fitting footer falls back to close-key-only rendering without hidden Inspect activation, including when Close is disabled. Pending reads continue to hide list rows; Close does not introduce a cancellation contract.
  • Back invalidates the detail request and clears detail/error state without resetting the parent selection or list window. Existing parent-owned teardown and request-token retention remain unchanged.
  • Real-frame regressions cover stale targets/replies, disabled and remapped bindings, empty/error/loading states, no-mouse keyboard operation, compact restoration, and both endpoints of wrapped controls. Five intentional Saved memory snapshots were reviewed. Existing contributor guidance already covers the learned patterns; no framework or guide expansion was needed.

Verification

  • Passed focused Saved memory and key-marking tests.
  • Passed go test ./cmd/mecatui/ui/internal/bounded ./cmd/mecatui/ui.
  • Passed task test:golden, including its non-update suite; inspected the five Saved memory snapshot changes.
  • Passed task lint and git diff --check.
  • Spec, Standards, Test adequacy, Architecture, Security, Reuse, and Duplication reviews complete; targeted fixes rechecked, no open findings.
  • No interactive terminal usability check was available. CI retains broad platform/deployment coverage; no engine-wide or live-provider run was needed for this UI-only slice.

API compatibility

UI-only affordances using existing read commands. No remote-observable API semantics, wire major/features, public Go API, stored-data, or upgrade changes.

Keep entry-row clicks select-only and add Inspect, Back, and Close controls with current-frame routing and keyboard parity.

Co-authored-by: Mecatl <noreply@mecatl.dev>

This branch has not been deployed

No deployments
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