Skip to content

fix(tui): update toast duration handling to use default value#23395

Merged
rekram1-node merged 8 commits intoanomalyco:devfrom
OpeOginni:fix/tui-toast-default-duration
Apr 26, 2026
Merged

fix(tui): update toast duration handling to use default value#23395
rekram1-node merged 8 commits intoanomalyco:devfrom
OpeOginni:fix/tui-toast-default-duration

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

@OpeOginni OpeOginni commented Apr 19, 2026

Issue for this PR

Closes #23394
Closes #23613

Type of change

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

What does this PR do?

This PR adds back a defualt duration value of 5000, it got broken since the PR change 675a46e#diff-cc994057bfc51f2b10c6a0251f9dbffc10e875626473e48812cc49cd89ef57b9L59, removing the parse that would add the default originally.

How did you verify your code works?

Tested on my local machine with the change added in.

Screenshots / recordings

BEFORE

Screen.Recording.2026-04-19.at.09.37.15.mov

AFTER

Screen.Recording.2026-04-19.at.09.44.30.mov

Checklist

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

Comment thread packages/opencode/src/cli/cmd/tui/ui/toast.tsx Outdated
@ariane-emory
Copy link
Copy Markdown
Contributor

Have not personally tested, but it looks pretty reasonable to me.

@rekram1-node
Copy link
Copy Markdown
Collaborator

/review

@github-actions
Copy link
Copy Markdown
Contributor

lgtm

@rekram1-node rekram1-node merged commit c68907e into anomalyco:dev Apr 26, 2026
8 checks passed
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.

"Copied to clipboard" toast disappears almost immediately on macOS Broken TUI Toast when Copying Text

4 participants