[PR #1691] [MERGED] Fix web-shell remote runtime settings copy #5217

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

📋 Pull Request Information

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

Base: refactor ← Head: bughunt/refactor-lane3-roleplay-20260531


📝 Commits (1)

  • 2c0777c Fix web-shell remote runtime settings copy

📊 Changes

5 files changed (+34 additions, -7 deletions)

View changed files

➕ .github/pr-evidence/refactor-lane3-roleplay-runtime-settings/after-open-advanced-settings.png (+0 -0)
➕ .github/pr-evidence/refactor-lane3-roleplay-runtime-settings/before-open-advanced-settings.png (+0 -0)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+8 -4)
📝 src/shared/api/remote-runtime.test.ts (+12 -1)
📝 src/shared/api/remote-runtime.ts (+14 -2)

📄 Description

Linked issue

N/A - coordinator-assigned refactor bug-hunt lane.

Why this change

  • Lane 3 found a no-provider roleplay setup mismatch in web-shell mode: the roleplay setup modal correctly said a Remote Runtime URL was required, but the Advanced Settings panel it opened claimed "Embedded Tauri runtime in use."

What changed

  • Added shared runtime-environment detection for blank Remote Runtime URL health copy.
  • Updated Advanced Settings to use the shared unconfigured-runtime message instead of hard-coding the embedded Tauri copy.
  • Added regression coverage for both browser/web-shell and embedded Tauri blank-url states.
  • Added scoped before/after UI evidence for the no-provider roleplay setup handoff.

Refactor impact

Primary owner:

shared API / settings UI

Impact areas reviewed:

  • Roleplay quick-start no-provider setup handoff.
  • Advanced Settings Remote Runtime URL health copy.
  • Remote runtime helper behavior for blank URL in web-shell and Tauri-like environments.

Boundary notes:

  • Product/runtime detection stays in src/shared/api.
  • React settings UI consumes the shared helper.
  • No engine, storage, provider transport, prompt assembly, schema, dependency, auth, or version changes.

Pressure points touched:

  • Shared API remote runtime health helper.
  • Settings panel Advanced tab runtime section.

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

  • Codex ran node scratch\lane3-no-provider-settings.mjs: opened the browser/web-shell app, clicked Roleplay with no provider/runtime, opened Advanced Settings from the no-provider prompt, and verified the panel shows "Remote Runtime URL is required in web-shell mode." while the stale "Embedded Tauri runtime in use." copy is absent.
  • Codex ran pnpm exec vitest run src/shared/api/remote-runtime.test.ts: 15 tests passed, including web-shell and Tauri blank-url runtime copy rows.
  • Codex ran pnpm typecheck: passed before the base rebase.
  • Codex ran pnpm check after rebasing onto current upstream/refactor: line endings, architecture, frontend typecheck, Rust cargo check, and docs checks passed.
  • Codex ran node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json: passed.
  • Bunny review: passed on the current diff and proof.

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

Before:

Before: Advanced Settings claimed embedded Tauri runtime in browser web-shell

After:

After: Advanced Settings says Remote Runtime URL is required in web-shell mode


🔄 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/1691 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `bughunt/refactor-lane3-roleplay-20260531` --- ### 📝 Commits (1) - [`2c0777c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2c0777c6006419a6cde91a28b8164a8726cd4401) Fix web-shell remote runtime settings copy ### 📊 Changes **5 files changed** (+34 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `.github/pr-evidence/refactor-lane3-roleplay-runtime-settings/after-open-advanced-settings.png` (+0 -0) ➕ `.github/pr-evidence/refactor-lane3-roleplay-runtime-settings/before-open-advanced-settings.png` (+0 -0) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+8 -4) 📝 `src/shared/api/remote-runtime.test.ts` (+12 -1) 📝 `src/shared/api/remote-runtime.ts` (+14 -2) </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 N/A - coordinator-assigned refactor bug-hunt lane. ## Why this change - Lane 3 found a no-provider roleplay setup mismatch in web-shell mode: the roleplay setup modal correctly said a Remote Runtime URL was required, but the Advanced Settings panel it opened claimed "Embedded Tauri runtime in use." ## What changed - Added shared runtime-environment detection for blank Remote Runtime URL health copy. - Updated Advanced Settings to use the shared unconfigured-runtime message instead of hard-coding the embedded Tauri copy. - Added regression coverage for both browser/web-shell and embedded Tauri blank-url states. - Added scoped before/after UI evidence for the no-provider roleplay setup handoff. ## Refactor impact Primary owner: shared API / settings UI Impact areas reviewed: - Roleplay quick-start no-provider setup handoff. - Advanced Settings Remote Runtime URL health copy. - Remote runtime helper behavior for blank URL in web-shell and Tauri-like environments. Boundary notes: - Product/runtime detection stays in `src/shared/api`. - React settings UI consumes the shared helper. - No engine, storage, provider transport, prompt assembly, schema, dependency, auth, or version changes. Pressure points touched: - Shared API remote runtime health helper. - Settings panel Advanced tab runtime section. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `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 - Codex ran `node scratch\lane3-no-provider-settings.mjs`: opened the browser/web-shell app, clicked Roleplay with no provider/runtime, opened Advanced Settings from the no-provider prompt, and verified the panel shows "Remote Runtime URL is required in web-shell mode." while the stale "Embedded Tauri runtime in use." copy is absent. - Codex ran `pnpm exec vitest run src/shared/api/remote-runtime.test.ts`: 15 tests passed, including web-shell and Tauri blank-url runtime copy rows. - Codex ran `pnpm typecheck`: passed before the base rebase. - Codex ran `pnpm check` after rebasing onto current `upstream/refactor`: line endings, architecture, frontend typecheck, Rust cargo check, and docs checks passed. - Codex ran `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json`: passed. - Bunny review: passed on the current diff and proof. ## 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 Before: ![Before: Advanced Settings claimed embedded Tauri runtime in browser web-shell](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/2c0777c6006419a6cde91a28b8164a8726cd4401/.github/pr-evidence/refactor-lane3-roleplay-runtime-settings/before-open-advanced-settings.png) After: ![After: Advanced Settings says Remote Runtime URL is required in web-shell mode](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/2c0777c6006419a6cde91a28b8164a8726cd4401/.github/pr-evidence/refactor-lane3-roleplay-runtime-settings/after-open-advanced-settings.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:19 +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#5217
No description provided.