Skip to content

Bound mecatui saved-memory browser - #2012

Merged
jbeda merged 11 commits into
mainfrom
impl/mecatui-saved-memory-bounded-browser
Sep 30, 2026
Merged

jbeda merged 11 commits into
mainfrom
impl/mecatui-saved-memory-bounded-browser

Conversation

@jbeda

@jbeda jbeda commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Stage

Implementation — Saved-memory bounded browser. Closes #1896.

Approved Plan / Interface PR: #1995
Approved baseline: f64f4ebd15b05ace1fa758c69ab8df3ec09ee495
Contract: docs/acceptance/mecatui-saved-memory-bounded-browser.md

Direct, human-authorized amendments on this implementation branch:

  • c8b1a44bc — Rename only the interactive TUI command to /memory, without an alias. No CLI flags, settings, storage paths, or server APIs change.
  • a445d4b89 — Amend AC3.5: docs/tui.md owns bounded-navigation and compact-fallback detail; the public TUI guide provides /memory command discovery and a link to memory guidance rather than narrating visible panel controls.

Delivered

  • Replace the root-owned, fourteen-line saved-memory overlay with a responsive modal containing a bounded selectable list and separate detail/history viewport. Preserve exact-key request fencing, selection and scroll anchors, wheel ownership, compact fallback, and read-only behavior.
  • Make the visible modal own Enter instead of dispatching a hidden /clear draft. Running-phase /clear and server-side active-clear semantics remain unchanged.
  • Present each description beneath its exact fact key with a subdued │ rail, including wrapped continuations and narrow/Unicode behavior.
  • Rename the Model-lifetime userModelGen field to userModelRequestToken without changing the cross-open request fence or implementing the separate shared-token work tracked in refactor(mecatui): standardize local async request tokens #713.
  • Repair malformed UTF-8 handling in shared terminal-text sanitizers: raw C1 control bytes become replacement runes, while Dream review still quotes exact invalid bytes as safe printable escapes.
  • Update the public TUI guide, memory overview, API references, and internal TUI reference. The unrelated GET /v1/usermodel HTTP route and usermodel storage directory are unchanged.

Acceptance criteria: AC1.1–AC1.3, AC2.1–AC2.4, and amended AC3.1–AC3.5 complete; all 12 proofs resolve in task ac-trace-strict. Root-boundary regressions cover modal ownership, no /usermodel alias, description wrapping/resize, and malformed UTF-8.

Interfaces match the amended contract: Yes. Both amendments were directly authorized and committed separately from their implementation. No other interface or ADR amendment was needed.

Verification and review

  • task generate, task docs, task site:build, task test:golden, task ac-trace-strict, task lint, and go run ./cmd/mecademo — passed. Docs, site, strict AC trace, and lint were rerun after the AC3.5 amendment and guide cleanup.
  • umask 022; task test and umask 022; task test:race — passed on the latest assembled candidate, including the request-token rename and guide cleanup.
  • Offline demo showed a tool call, permission ask/approval, and result. Review found and fixed Unicode/narrow-rail issues, missing root-boundary proofs, and the shared terminal-text security flaw; focused security review found no concrete issue. The earlier panel's shared bounded-navigation mapping advisory remains outside this PR.

Test environment caveat: This shell's ambient umask is 0002. An unrelated pre-existing microVM test at environment/microvm/repository_attachment_test.go:510 assumes 0644 for a replacement inode; both complete test gates passed under umask 022. An earlier full-test run encountered an unrelated internal/app/microvm_multibuild_test.go net.Pipe goroutine leak when two tests ran together; later complete runs passed. No microVM changes are included.

jbeda and others added 2 commits September 30, 2026 13:45
Direct human-authorized amendment of the approved saved-memory browser contract. The rename affects only the interactive command; storage, CLI flags, and server APIs remain unchanged.

Co-authored-by: Mecatl <[email protected]>
Make visible modals own Enter, rename the interactive inspector to /memory, and add a subdued rail to saved-memory descriptions. Update current user guidance and root-boundary tests. Repair invalid UTF-8 at the shared terminal-text boundary while preserving byte-exact Dream review escapes.

Co-authored-by: Mecatl <[email protected]>
jbeda and others added 2 commits September 30, 2026 15:21
Human-authorized amendment to AC3.5: the internal TUI reference owns bounded navigation and compact fallback, while the public guide provides command discovery and a link to memory guidance.

Co-authored-by: Mecatl <[email protected]>
Name the Model-lifetime saved-memory request fence consistently and leave its behavior unchanged. Keep the public TUI guide focused on command discovery rather than narrating visible controls or an unlikely hidden draft.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda merged commit a231359 into main Sep 30, 2026
38 checks passed
@jbeda
jbeda deleted the impl/mecatui-saved-memory-bounded-browser branch September 30, 2026 22:41
jbeda added a commit that referenced this pull request Sep 30, 2026
Co-authored-by: Mecatl <[email protected]>

* origin/main:
  Bound mecatui saved-memory browser (#2012)
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 1, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 9c59c34c Deployed Sep 30, 2026 by vercel[bot]
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: bound saved-memory inventory and detail browser

1 participant