backnotprop / backnotprop/plannotator

Notify user in TUI when browser review is waiting for input

Open
#915 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
11h 12m
Merged PRs (30d)
109

Description

## Problem

When `plannotator_submit_plan` opens the browser for plan review, there is no TUI notification. The tool silently awaits the user decision, making pi appear frozen.

On GNOME (Wayland), `xdg-open` does not force the browser to the foreground either, so the user has no visual cue that anything happened.

## Flow

```
agent calls plannotator_submit_plan
→ server starts
→ browser opens (background, no TUI message)
→ pi awaits decision ← silent, appears stuck
→ user eventually notices browser tab and clicks Approve/Deny
```

## Suggested fix

In `openBrowserForServer`, when the browser opens successfully on a local session, notify the user:

```ts
} else {
ctx.ui.notify("Plannotator: browser opened — review and approve/deny when ready.", "info");
}
```

This ensures the TUI always communicates that plannotator is waiting on user input, regardless of whether the browser lands in the foreground.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.