Skip to content

fix(container): surface clear error when PR branch is deleted - #18

Merged
mariuspruvot merged 2 commits into
mainfrom
fix/deleted-pr-branch
Apr 18, 2026
Merged

fix(container): surface clear error when PR branch is deleted#18
mariuspruvot merged 2 commits into
mainfrom
fix/deleted-pr-branch

Conversation

@mariuspruvot

Copy link
Copy Markdown
Owner

Summary

  • Entrypoint emits structured {"type":"error","error":{"message":"..."}} events to stdout when gh repo clone or gh pr checkout fails, so the SSE pipeline relays them to the frontend
  • Frontend parses the new error event type and displays the message inline in the conversation
  • Done SSE event now includes a status field so the frontend can distinguish completed vs failed sessions (previously always set completed)

Before: deleted-branch sessions fail silently, frontend enters reconnect loop
After: user sees "Failed to checkout PR #N. The branch may have been deleted after the PR was merged." and status badge shows failed

Test plan

  • Merge a PR and delete its branch, then start a session on it — verify clear error message appears
  • Verify no reconnect storm (status transitions to failed immediately)
  • Normal PR session still works end-to-end (no regression)
  • make lint passes
  • make test passes (2 pre-existing flaky webhook dispatcher tests excluded)

When a user starts a session on a merged PR whose branch was deleted,
gh pr checkout fails silently and the frontend enters a reconnect loop.

- Entrypoint now emits structured error events to stdout on clone/checkout
  failure so the SSE pipeline relays them to the frontend
- Frontend parses the new error event type and displays the message inline
- Done SSE event includes status field so the frontend can distinguish
  completed vs failed sessions
@helprs-local-mariuspruvot

Copy link
Copy Markdown

helPRs session created for this PR.

Skill: challenge-me | Open session

@mariuspruvot
mariuspruvot merged commit 703ea3f into main Apr 18, 2026
8 of 10 checks passed
@mariuspruvot
mariuspruvot deleted the fix/deleted-pr-branch branch July 30, 2026 16:16
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