Skip to content

feat(tui): make pasted summaries expandable/collapsible in prompt#17248

Open
tobwen wants to merge 1 commit intoanomalyco:devfrom
tobwen:feature/clickable-paste-summaries
Open

feat(tui): make pasted summaries expandable/collapsible in prompt#17248
tobwen wants to merge 1 commit intoanomalyco:devfrom
tobwen:feature/clickable-paste-summaries

Conversation

@tobwen
Copy link
Contributor

@tobwen tobwen commented Mar 12, 2026

WARNING

This depends on anomalyco/opentui#810

Issue for this PR

Closes #8501

Type of change

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

What does this PR do?

Adds a new pasted-summary feature in the TUI prompt.

Users can expand summaries, edit the expanded text, and collapse it back into a summary. The summary is recalculated from the edited content, including updated line count. The interaction also remains available when prompt parts are restored from stored state.

This is a UI/core feature and should have design review context linked from the issue.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

  • Tested expanding, editing, and collapsing pasted summaries in the TUI prompt
  • Confirmed layout stays stable with long pasted content
  • Confirmed stored prompt parts remain clickable after reload
  • Confirmed edited pasted text is re-summarized with updated line count after collapsing

Screenshots / recordings

opencode-summary

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found

PR #8496: feat(tui): Allow to expand pasted text (AKA "pasted summary")

Related PR #15771: feat(tui): add configurable paste summary thresholds

I recommend checking if PR #8496 is closed/merged and how it differs from the current implementation in #17248.

@tobwen tobwen changed the title feat(tui): make pasted summaries expandable in prompt feat(tui): make pasted summaries expandable/collapsible in prompt Mar 13, 2026
@tobwen tobwen force-pushed the feature/clickable-paste-summaries branch from dd2a288 to 54da0be Compare March 13, 2026 03:16
@tobwen tobwen force-pushed the feature/clickable-paste-summaries branch from 54da0be to e7eb9dd Compare March 13, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Allow to expand the pasted text (e.g. [Pasted ~1 lines])

1 participant