Skip to content

Run analysis: notify when a run ends - #155

Open
t0mdavid-m wants to merge 5 commits into
mainfrom
claude/project-thread-dm69w3-notify
Open

t0mdavid-m wants to merge 5 commits into
mainfrom
claude/project-thread-dm69w3-notify

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

Requested by Tom · project thread

What it does

An analysis of a large study runs for hours, and users work in other tabs meanwhile. Run analysis now tells them when it ends:

  • While a run is going, 🔔 Notify me when it ends asks the browser for permission. The ask needs the user's click.
  • When the run ends and the tab is hidden:
    • the tab title gets ✓, ✗ or ■ in front until the tab is shown again;
    • with permission, a notification says "OpenDDA analysis finished." (or "failed.", or "was cancelled.").
  • Nothing changes for a tab in view, and a reload does not notify twice.

This brings the template change OpenMS/streamlit-template#569 (src/workflow/run_notice.py, execution_section(name=...), the class attribute run_label). WorkflowTest sets run_label = "OpenDDA analysis", so the notification does not name the internal workflow slug. Merge #569 first. The next template sync then brings the same files.

Screenshots

Run analysis while a run is going:

light
dark

The run in these screenshots is simulated: a process ID file and a log were put in the workspace, and the progress panel shows an earlier run's steps. A browser check on that page did the following:

  1. It hid the tab, allowed notifications and ended the run.
  2. The title became ✓ OpenDDA.
  3. One notification, "OpenDDA analysis finished.", was sent.
  4. The title went back to OpenDDA when the tab was shown.

Tests

tests/test_run_notice.py (10 tests) and tests/test_run_flow.py pass.


Generated by Claude Code

While a run is going, the Run page offers a 'Notify me when it ends'
button that asks the browser for permission. When a run this session saw
running ends, a hidden tab gets the outcome in front of its title until it
is shown again, and a notification names the workflow and the outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
Brings the template's end-of-run notification (OpenMS/streamlit-template#569)
and sets run_label so the notification reads 'OpenDDA analysis finished.'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
@t0mdavid-m t0mdavid-m self-assigned this Nov 13, 2026
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c18cf5d2-156a-43b5-a0c9-5be4821117c5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…b is reported as failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
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