2 Commits

Author SHA1 Message Date
Nico Albanese
6d19dd850e
tui: migrate to OpenTUI and update gateway proxy (#130)
* tui: migrate from Ink to OpenTUI for improved input performance

Replace Ink with OpenTUI (@opentui/core, @opentui/react) to fix input lag
issues that were noticeable in long conversations.

Key changes:
- Add ink-shim.tsx compatibility layer to minimize component rewrites
- Replace manual chalk/marked markdown rendering with native <Markdown>
- Use TreeSitter-based syntax highlighting via OpenTUI
- Add ScrollBox with sticky scroll for better chat UX
- Refactor text-input to use segment-based rendering with attributes
- Update renderer initialization to use OpenTUI's createCliRenderer

The shim layer preserves Ink's API surface (Box, Text, useInput, useApp)
while using OpenTUI's renderer underneath. This enables incremental
migration to native OpenTUI patterns in follow-up work.

Removed dependencies: ink, ink-spinner, ink-text-input, cli-highlight
Added dependencies: @opentui/core, @opentui/react

* tui: align layout rows and centralize primary color

* tui: keep tool output readable in narrow terminals

* tui: align assistant text and show copy feedback

* tui: refine input shortcuts and mouse filtering

* tui: chunk stream output by line

* web: format avatar and dropdown menu components

* db: format migration metadata

* tui: use OpenTUI diff and code previews

* tui: refine clipboard toast styling

* fix: fetch models via web api

* feat: surface model context limits

* tui: improve interruption and question flow readability

* fix tui auto-submit after abort

* tui: keep input visible on typing

* chore: add ci script for core checks

* docs: note ci script in agent guide

* fix: use authenticated gateway models

* fix: enrich gateway models with context limits

* update lock

* update agents md
2026-01-30 10:51:52 +00:00
Nico Albanese
f87c41920b
refacotr shared utils from tui to package (#59)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 11:51:59 +01:00