Skip to content

Drive the notification title test through Core's declared progress states - #1179

Merged
trissim merged 1 commit into
mainfrom
fix/notification-title-declared-states
Oct 23, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/notification-title-declared-states

Conversation

@trissim

@trissim trissim commented Oct 23, 2026

Copy link
Copy Markdown

tests/textual/test_message_notification_title.py was red on main: it called the removed show_result/show_error and built MessageNotification from the stale positional shape ("Responding", detail, busy).

  • Hosts the widget inside a real conversation, the ProjectPathOwner that ToolContent's mount needs (linked_rows.py ReferenceRendering._on_mount).
  • Feeds CheckedNotifications / UnavailableNotifications through MessageNotifications.show.
  • States come from Core's family: ReadingProgress is what a busy selected response shows (agent_comms/notification_progress.py ShownToModelProgress.selected_notification, busy=True), CompletedProgress what CompletedAssignment shows (assignment_states.py:456).
  • Titles compared with MessageNotification.summary, not restated strings.

Test: main 1 failed (AttributeError: show_result); branch 1 passed.

🤖 Generated with Claude Code

…ates

The test still called the removed show_result/show_error API and built
MessageNotification from the stale positional shape with `detail` and
`busy` fields that no longer exist, so it failed on main.

It now hosts the widget inside a real conversation (the project-path
owner its details need), feeds it CheckedNotifications and
UnavailableNotifications through show(), and takes the states from
Core's family: ReadingProgress is what a busy selected response shows
(notification_progress.py ShownToModelProgress.selected_notification),
CompletedProgress what a completed assignment shows. Titles are
compared with MessageNotification.summary instead of restated strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 22:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@trissim
trissim merged commit 03c0f0c into main Oct 23, 2026
3 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.

2 participants