[PR #1441] [MERGED] Fix Conversation provider page errors #5087

Closed
opened 2026-10-22 04:13:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1441
Author: @cha1latte
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1433-page-errors


📝 Commits (1)

  • 6d74a71 fix conversation provider page errors

📊 Changes

1 file changed (+11 additions, -7 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationInput.tsx (+11 -7)

📄 Description

Linked issue

Closes #1433

Why this change

  • Conversation send failures from provider errors and expected cancellation were escaping the input handler as unhandled browser pageerror events after the provider/cancel fixes.

What changed

  • Catch generate(...) rejections from the Conversation main Send/Enter path after useGenerate has already handled provider-failure UI feedback and Stop generating cleanup.

Refactor impact

Primary owner:

  • chat mode

Impact areas reviewed:

  • Conversation input send path
  • Runtime generation error/cancel handling contract
  • Shared chat input behavior for the analogous guarded send path

Boundary notes:

  • UI-only fix in src/features; no src/engine, src/shared/api, or src-tauri boundary changes.

Pressure points touched:

  • Conversation mode input surface only.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Focused Playwright proof against http://127.0.0.1:5173, remote runtime http://127.0.0.1:8787, and fake OpenAI provider http://127.0.0.1:8899/v1 covered provider 500, 429, malformed JSON, slow stream Stop generating, and timeout Stop generating. Result: pageErrors: [].
  • Reviewer-visible JSON proof: https://gist.github.com/cha1latte/7c1581b2031caac9b7f74a0c4c488794
  • Local proof artifacts: scratch/conversation-qa-2026-05-27T19-37-43-201Z/console-errors-new.json reproduced the original Error: [object Object] and AbortError: signal is aborted without reason; scratch/issue-1433-provider-pageerrors-2026-05-27T20-01-36-949Z/result.json verifies the fixed path.
  • pnpm check passed locally after rebasing onto current upstream/refactor.
  • pnpm build passed locally after rebasing onto current upstream/refactor.
  • graphify update . was attempted but could not run because graphify is not installed/on PATH in this environment.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • No visible UI layout change. The relevant UI evidence is the browser event proof above showing the provider/cancel flow no longer emits unhandled pageerror events.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1441 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1433-page-errors` --- ### 📝 Commits (1) - [`6d74a71`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d74a71fd593431361ed792638d739385c5c356c) fix conversation provider page errors ### 📊 Changes **1 file changed** (+11 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationInput.tsx` (+11 -7) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1433 ## Why this change - Conversation send failures from provider errors and expected cancellation were escaping the input handler as unhandled browser `pageerror` events after the provider/cancel fixes. ## What changed - Catch `generate(...)` rejections from the Conversation main Send/Enter path after `useGenerate` has already handled provider-failure UI feedback and Stop generating cleanup. ## Refactor impact Primary owner: - chat mode Impact areas reviewed: - Conversation input send path - Runtime generation error/cancel handling contract - Shared chat input behavior for the analogous guarded send path Boundary notes: - UI-only fix in `src/features`; no `src/engine`, `src/shared/api`, or `src-tauri` boundary changes. Pressure points touched: - Conversation mode input surface only. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Focused Playwright proof against `http://127.0.0.1:5173`, remote runtime `http://127.0.0.1:8787`, and fake OpenAI provider `http://127.0.0.1:8899/v1` covered provider 500, 429, malformed JSON, slow stream Stop generating, and timeout Stop generating. Result: `pageErrors: []`. - Reviewer-visible JSON proof: https://gist.github.com/cha1latte/7c1581b2031caac9b7f74a0c4c488794 - Local proof artifacts: `scratch/conversation-qa-2026-05-27T19-37-43-201Z/console-errors-new.json` reproduced the original `Error: [object Object]` and `AbortError: signal is aborted without reason`; `scratch/issue-1433-provider-pageerrors-2026-05-27T20-01-36-949Z/result.json` verifies the fixed path. - `pnpm check` passed locally after rebasing onto current `upstream/refactor`. - `pnpm build` passed locally after rebasing onto current `upstream/refactor`. - `graphify update .` was attempted but could not run because `graphify` is not installed/on PATH in this environment. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - No visible UI layout change. The relevant UI evidence is the browser event proof above showing the provider/cancel flow no longer emits unhandled `pageerror` events. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5087
No description provided.