[PR #13902] feat(tui): add configurable home prompt sizing presets #14863

Open
opened 2026-02-16 18:19:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13902

State: open
Merged: No


Summary

  • add a new tui.initial_prompt config contract with compact|medium|large presets and optional width_percent / height_percent overrides for the opening home screen composer
  • wire home-route prompt layout to terminal-aware preset/override resolution while preserving compact defaults (75 max width, 6 max input rows) and keeping behavior scoped to the opening screen
  • include UX updates in the same PR (more vertical room for medium/large and a subtle active-size cue), plus docs, config tests, and regenerated SDK/OpenAPI artifacts

Testing

  • bun run typecheck (from packages/opencode)
  • bun test test/config/config.test.ts -t \"tui initial prompt\" (from packages/opencode)
  • bun run build (from packages/web)
  • ./packages/sdk/js/script/build.ts
  • bun script/generate.ts
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13902 **State:** open **Merged:** No --- ## Summary - add a new `tui.initial_prompt` config contract with `compact|medium|large` presets and optional `width_percent` / `height_percent` overrides for the opening home screen composer - wire home-route prompt layout to terminal-aware preset/override resolution while preserving compact defaults (`75` max width, `6` max input rows) and keeping behavior scoped to the opening screen - include UX updates in the same PR (more vertical room for medium/large and a subtle active-size cue), plus docs, config tests, and regenerated SDK/OpenAPI artifacts ## Testing - `bun run typecheck` (from `packages/opencode`) - `bun test test/config/config.test.ts -t \"tui initial prompt\"` (from `packages/opencode`) - `bun run build` (from `packages/web`) - `./packages/sdk/js/script/build.ts` - `bun script/generate.ts`
yindo added the pull-request label 2026-02-16 18:19:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14863