Skip to content

feat(tui): prototype sticky prompt header#29086

Draft
coconilu wants to merge 2 commits into
anomalyco:devfrom
coconilu:feature/tui-sticky-prompt-template
Draft

feat(tui): prototype sticky prompt header#29086
coconilu wants to merge 2 commits into
anomalyco:devfrom
coconilu:feature/tui-sticky-prompt-template

Conversation

@coconilu
Copy link
Copy Markdown

Issue for this PR

Refs #28035

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a draft TUI prototype that keeps the active user prompt visible above the session scroll area after the original prompt scrolls out of view. The sticky prompt shows two lines by default, can expand with [+], collapse with [-], and jump to the first assistant text response with [^].

This is a UX prototype. If maintainers prefer the slot/plugin direction discussed in #28035, I can split this into a smaller session slot/API PR and move the prompt UI into a plugin.

How did you verify your code works?

  • Ran bun typecheck from packages/opencode
  • Tested locally with bun dev

Screenshots / recordings

Not included yet; this is a draft for UX review.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@mrkprdo
Copy link
Copy Markdown

mrkprdo commented May 25, 2026

maybe need some adjustments in the gap?
image

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.

2 participants