Skip to content

[MT-23014] Show a friendly state for deleted open messages#30

Closed
kyrylo-yevdokymov wants to merge 1 commit into
mainfrom
codex/mt-23014-deleted-message-state
Closed

[MT-23014] Show a friendly state for deleted open messages#30
kyrylo-yevdokymov wants to merge 1 commit into
mainfrom
codex/mt-23014-deleted-message-state

Conversation

@kyrylo-yevdokymov

@kyrylo-yevdokymov kyrylo-yevdokymov commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What & why

Fixes MT-23014, a sub-task of MT-22849.

Message API 404s were handled as generic Axios failures, and an externally deleted open message remained stale. This change recognizes the not-found case, reacts to live deletion, and renders a clear recovery state with a route back to the inbox.

Impact

Users no longer see a raw network error when the open message has been deleted.

Verification

  • npm test — 62 tests passed
  • npm run lint — 0 errors; 4 existing warnings
  • npm run build — passed
  • git diff --check main...codex/mt-23014-deleted-message-state — passed

A message deleted while open (by another client, the API, or retention
eviction) surfaced as the raw axios string "Error: AxiosError: Request
failed with status code 404" in MessageView.

- Add isNotFoundError() to api/client next to isAbortError.
- On a 404 load, render an EmptyCard saying the message was deleted,
  with a "Back to inbox" button instead of the raw error.
- Subscribe MessageView to the live channel and swap to the same
  deleted state when a 'destroyed' frame targets the open message,
  instead of leaving a stale view.
- Non-404 failures now go through extractApiError() for readable copy.

Jira: MT-22849 (finding 8)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 66380600-a5f2-430b-a368-ed9679ff6073

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Comment @coderabbitai help to get the list of available commands.

@kyrylo-yevdokymov

Copy link
Copy Markdown
Contributor Author

Replaced by #42 using the repository-standard fix/mt-23014-deleted-message-state branch.

@kyrylo-yevdokymov
kyrylo-yevdokymov deleted the codex/mt-23014-deleted-message-state branch July 13, 2026 10:35
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