[PR #1694] [MERGED] Fix character create name trimming #5220

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

📋 Pull Request Information

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

Base: refactor ← Head: bughunt/refactor-lane5-catalog-20260531


📝 Commits (2)

  • 52edaa8 Fix character create name trimming
  • 27c7f87 Add lane 5 trim proof

📊 Changes

4 files changed (+40 additions, -3 deletions)

View changed files

➕ pr-evidence/lane5-catalog-trim/after-created-character.png (+0 -0)
➕ pr-evidence/lane5-catalog-trim/after-result.json (+23 -0)
➕ pr-evidence/lane5-catalog-trim/before-result.json (+13 -0)
📝 src/features/catalog/characters/components/CreateCharacterModal.tsx (+4 -3)

📄 Description

Linked issue

N/A - multi-agent refactor bug-hunt lane 5.

Why this change

  • The right-panel Characters create modal accepted a padded name and sent the raw whitespace-preserved value to storage for both name and data.name.
  • Personas and Connections already trim created names; Characters should behave the same way before opening the created detail view.

What changed

  • Trim the character name once in CreateCharacterModal.handleCreate.
  • Use the trimmed name for both the top-level character record and the V2 card data payload.
  • Added scoped PR evidence for the before/after storage payload capture and after screenshot.

Refactor impact

Primary owner:

catalog

Impact areas reviewed:

  • Right-panel Characters create flow.
  • Other right-panel catalog tabs were smoke checked with the Playwright lane harness.

Boundary notes:

  • Feature-layer-only change in src/features/catalog/characters.
  • No engine, shared API, Rust, storage, schema, import/export, dependency, auth, version, or prompt-pipeline changes.

Pressure points touched:

  • None. This does not touch ModeSurface, GameSurface, shared mode UI, Tauri command registration, or import modules.

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\lane5-create-trim-repro.mjs before the fix: the captured create payload had topLevelName and dataName as " Padded Character ".
  • Codex reran node scratch\lane5-create-trim-repro.mjs after the fix: the captured create payload had topLevelName and dataName as "Padded Character".
  • Codex ran node scratch\lane5-catalog-hunt.mjs: Characters, Lorebooks, Presets, Connections, Agents, Personas, and Settings right-panel tabs opened under empty mocked storage.
  • Codex ran pnpm typecheck.
  • Codex ran pnpm check.
  • Codex ran node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json.
  • Bunny review pass: passed before opening this draft PR.

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 payload capture:
https://github.com/cha1latte/Marinara-Engine/blob/bughunt/refactor-lane5-catalog-20260531/pr-evidence/lane5-catalog-trim/before-result.json

After payload capture:
https://github.com/cha1latte/Marinara-Engine/blob/bughunt/refactor-lane5-catalog-20260531/pr-evidence/lane5-catalog-trim/after-result.json

After screenshot:

After creating a padded character name, the editor receives the trimmed name


🔄 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/1694 **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-lane5-catalog-20260531` --- ### 📝 Commits (2) - [`52edaa8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52edaa8af80588f2788909337209fed1f0af782d) Fix character create name trimming - [`27c7f87`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27c7f8749b4fbb4a578b520de83c47a5cdbacd4e) Add lane 5 trim proof ### 📊 Changes **4 files changed** (+40 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `pr-evidence/lane5-catalog-trim/after-created-character.png` (+0 -0) ➕ `pr-evidence/lane5-catalog-trim/after-result.json` (+23 -0) ➕ `pr-evidence/lane5-catalog-trim/before-result.json` (+13 -0) 📝 `src/features/catalog/characters/components/CreateCharacterModal.tsx` (+4 -3) </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 - multi-agent refactor bug-hunt lane 5. ## Why this change - The right-panel Characters create modal accepted a padded name and sent the raw whitespace-preserved value to storage for both `name` and `data.name`. - Personas and Connections already trim created names; Characters should behave the same way before opening the created detail view. ## What changed - Trim the character name once in `CreateCharacterModal.handleCreate`. - Use the trimmed name for both the top-level character record and the V2 card data payload. - Added scoped PR evidence for the before/after storage payload capture and after screenshot. ## Refactor impact Primary owner: catalog Impact areas reviewed: - Right-panel Characters create flow. - Other right-panel catalog tabs were smoke checked with the Playwright lane harness. Boundary notes: - Feature-layer-only change in `src/features/catalog/characters`. - No engine, shared API, Rust, storage, schema, import/export, dependency, auth, version, or prompt-pipeline changes. Pressure points touched: - None. This does not touch ModeSurface, GameSurface, shared mode UI, Tauri command registration, or import modules. ## 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\lane5-create-trim-repro.mjs` before the fix: the captured create payload had `topLevelName` and `dataName` as `" Padded Character "`. - Codex reran `node scratch\lane5-create-trim-repro.mjs` after the fix: the captured create payload had `topLevelName` and `dataName` as `"Padded Character"`. - Codex ran `node scratch\lane5-catalog-hunt.mjs`: Characters, Lorebooks, Presets, Connections, Agents, Personas, and Settings right-panel tabs opened under empty mocked storage. - Codex ran `pnpm typecheck`. - Codex ran `pnpm check`. - Codex ran `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json`. - Bunny review pass: passed before opening this draft PR. ## 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 payload capture: https://github.com/cha1latte/Marinara-Engine/blob/bughunt/refactor-lane5-catalog-20260531/pr-evidence/lane5-catalog-trim/before-result.json After payload capture: https://github.com/cha1latte/Marinara-Engine/blob/bughunt/refactor-lane5-catalog-20260531/pr-evidence/lane5-catalog-trim/after-result.json After screenshot: ![After creating a padded character name, the editor receives the trimmed name](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bughunt/refactor-lane5-catalog-20260531/pr-evidence/lane5-catalog-trim/after-created-character.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:20 +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#5220
No description provided.