[PR #5543] Add dismiss button to Getting Started box #11465

Closed
opened 2026-02-16 18:16:18 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5543

State: closed
Merged: Yes


Summary

I've fixed the issue by adding a dismiss button () to the "Getting Started" prompt in the TUI sidebar. Here's what was changed:

File: packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx

  1. Added import for the KV store context (line 12)
  2. Added KV instance and memo to track the dismissed state (lines 54, 59)
  3. Updated the Show condition to also check if the prompt was dismissed (line 255)
  4. Added a clickable dismiss button () in the top-right corner of the "Getting Started" box (lines 269-275)

How it works:

  • Users can now click the button in the "Getting Started" prompt to dismiss it
  • The dismissed state is persisted in the KV store (gettingStartedDismissed key) saved to ~/.local/state/opencode/kv.json
  • The prompt will stay hidden even after restarting OpenCode
  • Once a provider is connected, the prompt will naturally hide anyway (existing behavior preserved)

Closes #5482

New%20session%20-%202025-12-15T04%3A42%3A53.081Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5543 **State:** closed **Merged:** Yes --- ## Summary I've fixed the issue by adding a dismiss button (`✕`) to the "Getting Started" prompt in the TUI sidebar. Here's what was changed: **File: `packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx`** 1. **Added import** for the KV store context (line 12) 2. **Added KV instance and memo** to track the dismissed state (lines 54, 59) 3. **Updated the Show condition** to also check if the prompt was dismissed (line 255) 4. **Added a clickable dismiss button** (`✕`) in the top-right corner of the "Getting Started" box (lines 269-275) **How it works:** - Users can now click the `✕` button in the "Getting Started" prompt to dismiss it - The dismissed state is persisted in the KV store (`gettingStartedDismissed` key) saved to `~/.local/state/opencode/kv.json` - The prompt will stay hidden even after restarting OpenCode - Once a provider is connected, the prompt will naturally hide anyway (existing behavior preserved) Closes #5482 <a href="https://opencode.ai/s/O5xj4aOP"><img width="200" alt="New%20session%20-%202025-12-15T04%3A42%3A53.081Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEyLTE1VDA0OjQyOjUzLjA4MVo=.png?model=opencode/claude-opus-4-5&version=1.0.153&id=O5xj4aOP" /></a> [opencode session](https://opencode.ai/s/O5xj4aOP)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/20220745589)
yindo added the pull-request label 2026-02-16 18:16:18 -05:00
yindo closed this issue 2026-02-16 18:16:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11465