|
1 | | -wip: v1.17.9 reconciliation — §4 re-home TUI batch 2 + line-streaming flags (checkpoint 6) |
| 1 | +wip: v1.17.9 reconciliation — §4 app.tsx + UpgradeIndicator port (checkpoint 7) |
2 | 2 |
|
3 | | -Second re-homing wave into packages/tui (live TUI). packages/tui + packages/core both |
4 | | -typecheck GREEN. |
| 3 | +app.tsx re-home into packages/tui/src/app.tsx + UpgradeIndicator component port. |
| 4 | +packages/tui + packages/core both typecheck GREEN. |
5 | 5 |
|
6 | | -Re-homed (functional): |
7 | | -- context/sync.tsx — full streaming feature set: yolo auto-approve (adapted to the new |
8 | | - permission.reply API: workspace arg + reply:"once"), smooth-streaming direct-path delta |
9 | | - update, and the complete line-streaming buffer feature (lineBuffer + flushLineBuffer + |
10 | | - flushAllBuffersForMessage + the 5 event-handler hooks). event.type/.properties is correct |
11 | | - here (useEvent unwraps GlobalEvent.payload, unlike sdk.tsx). |
12 | | -- routes/session/index.tsx — `builder` agent name on plan_exit, smooth-streaming scroll |
13 | | - (toBottom 0ms), calm-mode content width cap (maxWidth via ALTIMATE_CONTENT_MAX_WIDTH). |
14 | | -- theme/index.ts — light-mode fg fallback (#704), code-block + inline-code backgrounds for |
15 | | - light-theme contrast. NOTE: inline-code uses theme.backgroundElement vs upstream's new |
16 | | - theme.background — flagged inline for the next merge's human review. |
17 | | -- feature-plugins/home/tips-view.tsx — fork DE-specific tips (/discover, /cost-report, |
18 | | - /dbt-docs, /sql-review, /migrate-sql, lineage, anti-patterns) folded into the new Tip pool. |
| 6 | +app.tsx (5 applied): |
| 7 | +- terminal-detection: created fork-original packages/tui/src/terminal-detection.ts |
| 8 | + (detectModeFromCOLORFGBG, #704) + eager COLORFGBG light-mode short-circuit in the |
| 9 | + theme-detection path (avoids the 1s waitForThemeMode delay). |
| 10 | +- branding: docs URL opencode.ai/docs -> docs.altimate.sh; DialogAlert update message |
| 11 | + "OpenCode v…" -> "Altimate Code v…". |
| 12 | +app.tsx MOOT (2): variant_list keybind (upstream v1.17.9 shipped PR #21185 natively); |
| 13 | +disableStdoutInterception (opentui API removed; renderer externalOutputMode handles it). |
| 14 | +app.tsx DEFERRED (7): trace-viewer feature — depends on opencode-side altimate/observability |
| 15 | +(Trace/renderTraceViewer/DialogTraceList), unreachable from packages/tui. Same architectural |
| 16 | +blocker as the dialogs/enhance (task: expose opencode deps to tui). |
19 | 17 |
|
20 | | -Flags re-homed into packages/core/src/flag/flag.ts (tui depends on core, not opencode): |
21 | | -ALTIMATE_LINE_STREAMING, ALTIMATE_CONTENT_MAX_WIDTH (+ numberEnv helper), joining the |
22 | | -ALTIMATE_CALM_MODE/SMOOTH_STREAMING/CLI_YOLO added in checkpoint 5. |
| 18 | +UpgradeIndicator port (fork-original, was deferred — now unblocked since it only needed |
| 19 | +Installation.VERSION = InstallationVersion in core): |
| 20 | +- packages/tui/src/component/upgrade-indicator{,-utils}.tsx — repointed imports to the tui |
| 21 | + layout, Installation.VERSION -> InstallationVersion. Added semver + @types/semver to |
| 22 | + packages/tui (were opencode-only deps). |
| 23 | +- routes/session/footer.tsx — wired <UpgradeIndicator /> back into the session footer. |
| 24 | +(home-screen UpgradeIndicator still deferred — lives in the new feature-plugins/home/footer |
| 25 | +plugin, a different surface.) |
23 | 26 |
|
24 | | -MOOT (upstream v1.17.9 shipped equivalents — dropped per upstream_fix rule): |
25 | | -- prompt skills-dialog keybind → upstream `prompt_skills` keybind. |
26 | | -- session workspace-gate, smooth-streaming memoize, light-theme md fg (upstream ships |
27 | | - fg=markdownText + bg=background). |
28 | | - |
29 | | -DEFERRED — architectural (tracked): enhance feature (enhance-prompt.ts), dialog-provider |
30 | | -(AltimateApi), dialog-skill (skill-helpers + keymap port). All three depend on opencode-package |
31 | | -code unreachable from packages/tui — need the shared code moved into @opencode-ai/core, routed |
32 | | -via SDK/server, or implemented as tui plugins. Real features; not dropped. |
33 | | - |
34 | | -DEFERRED — render-rewritten: session/index TextPart code-during-streaming, tips first-time-only |
35 | | -behavior, sidebar trace section (sidebar_content slot), footer/home UpgradeIndicator (component |
36 | | -not yet ported into packages/tui). |
37 | | - |
38 | | -OLD cli/cmd/tui/** files untouched (deleted in §3.4 after all re-homing verified). |
| 27 | +OLD cli/cmd/tui/** files untouched (deleted in §3.4 after remaining re-homing/decisions). |
0 commit comments