opencode icon indicating copy to clipboard operation
opencode copied to clipboard

tui: add permission indicator to footer

Open terakael opened this issue 1 month ago • 2 comments

Add visible indicator in footer when permissions are pending to improve discoverability when user has scrolled away from the permission request.

  • Display permission count with warning color (◉ N Permission/Permissions)
  • Follows existing LSP/MCP pattern for accessing data via sync context
  • Uses terminal-safe Unicode character (◉ U+25C9 FISHEYE)
  • Warning color matches permission request border styling
image

terakael avatar Nov 27 '25 05:11 terakael

I've been using this one all day and it is pretty awesome.

One wish that you might not really be able to fulfill: it's nice if the indicator text has a dramatic, easily visible difference in colour from the regular text so it's easier to notice in a quick, distracted tenth of a second glance.

Now, since the colours depend on the themes, there's only so much you could do: without knowing what theme someone is using, we can only take guesses as to which theme elements are more likely to have a visually distinct colouring, we couldn't really guarantee it easily...

Great work though, I love it!

ariane-emory avatar Nov 28 '25 20:11 ariane-emory

This is invaluable. I do hope it gets merged in soon.

ariane-emory avatar Dec 06 '25 19:12 ariane-emory

I get so many prs now, you should @ me if i start missing somethign this is good but this is first time im seeing it

rekram1-node avatar Dec 09 '25 02:12 rekram1-node

lgtm

github-actions[bot] avatar Dec 09 '25 03:12 github-actions[bot]

/review

rekram1-node avatar Dec 09 '25 03:12 rekram1-node

lgtm

github-actions[bot] avatar Dec 09 '25 03:12 github-actions[bot]