Skip to content

Don't notify on click if the agent didn't change#2824

Merged
dgageot merged 1 commit into
docker:mainfrom
rumpl:fix-notification
May 20, 2026
Merged

Don't notify on click if the agent didn't change#2824
dgageot merged 1 commit into
docker:mainfrom
rumpl:fix-notification

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented May 19, 2026

No description provided.

@rumpl rumpl requested a review from a team as a code owner May 19, 2026 21:20
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The no-op guard correctly prevents a redundant agent-switch notification when the user clicks the already-active agent. The logic is simple and the new test covers the primary path well.

One minor guard asymmetry noted (see inline comment) — not a blocking issue.

Comment thread pkg/tui/handlers.go Outdated
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl force-pushed the fix-notification branch from a3efd23 to c9c5db4 Compare May 19, 2026 21:25
@dgageot dgageot merged commit 2893e18 into docker:main May 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants