Skip to content

Fix ActivityAlreadyStartedError message#1348

Open
dandavison wants to merge 3 commits intomainfrom
saa-already-started-error
Open

Fix ActivityAlreadyStartedError message#1348
dandavison wants to merge 3 commits intomainfrom
saa-already-started-error

Conversation

@dandavison
Copy link
Contributor

@dandavison dandavison commented Feb 28, 2026

What was changed

Fix an error message

Why?

It was incorrectly mentioning "Workflow" in an activity error message

Checklist

  1. How was this tested:
    PR contains a test

Note

Low Risk
Low risk: changes only the user-facing exception message for ActivityAlreadyStartedError and adds a test assertion to prevent regression.

Overview
Fixes ActivityAlreadyStartedError to report an activity already started (instead of incorrectly saying workflow already started).

Adds a regression check in test_id_conflict_policy_fail ensuring the exception string contains "Activity" when an activity ID conflict occurs.

Written by Cursor Bugbot for commit 48832d6. This will update automatically on new commits. Configure here.

ActivityAlreadyStartedError.__init__ passes "Workflow execution already
started" to super().__init__(), which is a copy-paste error from
WorkflowAlreadyStartedError. Add a unit test and an assertion in the
existing integration test that both fail, demonstrating the bug.
@dandavison dandavison requested a review from a team as a code owner February 28, 2026 03:08
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

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.

1 participant