Skip to content

fix: prepare beta19 footer rows, JEV gateway and computer capture - #351

Merged
Obed0101 merged 1 commit into
mainfrom
release/v0.1.44-beta.19
Sep 27, 2026
Merged

Obed0101 merged 1 commit into
mainfrom
release/v0.1.44-beta.19

Conversation

@Obed0101

@Obed0101 Obed0101 commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The locally built 0.1.44-beta.19.local.1 carried three fixes that were never published:

  • Prompt status scripts could only produce a single footer line, so richer status output was squeezed or truncated.
  • Adaptive reasoning (JEV) evaluation only accepted OpenRouter as provider.
  • computer_capture rejected null for region/windowID. Strict tool transports that require every key had no valid way to request a main-display capture (some models sent 0 as a placeholder window ID).

Solution

  • Footer rows: a status script may return {"rows": [[...], [...]]} (max 4 rows, 32 segments, 240 chars, control characters stripped). Segments carry breakBefore; the TUI renders them through one shared PromptStatusLines component, replacing four duplicated inline renderers. Legacy JSON/TSV/text output remains single-line. Scripts receive MEND_TUI_STATUS_FORMAT=rows-v1.
  • JEV provider: provider accepts openrouter or vercel-ai-gateway; each binding has its own endpoint, model and provider routing, and the gateway response is validated with its own schema and normalized to the existing shape. Consent, credential and redaction checks are unchanged.
  • Computer capture: region and windowID accept null as absent; validation (positive window ID, integer crop bounds, no combined selectors) is unchanged.

Verification

  • bun test on adaptive-reasoning (jev/policy/runtime), tui-prompt-chrome, computer, prompt-status and TUI prompt suites: 252 pass, 0 fail.
  • tsgo --noEmit: clean.
  • The same source was built and run locally as 0.1.44-beta.19.local.1.

Risks

  • Vercel AI Gateway binding is covered by request/response unit tests with mocked fetch; no live gateway call was made.
  • Multiline footer is opt-in via rows; existing scripts are unaffected.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@Obed0101
Obed0101 merged commit 3cf936c into main Sep 27, 2026
8 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