[GH-ISSUE #1427] [Issue]: Conversation settings logs a nested button React error #708

Closed
opened 2026-10-20 17:32:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @cha1latte on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1427

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Opening the Conversation chat settings drawer logs a React invalid HTML nesting error because a help button is rendered inside another button in the settings section header.

Expected behavior

Opening Conversation settings should not log React DOM nesting or hydration errors.

Actual behavior

The browser console logs that <button> cannot be a descendant of <button>. The stack points to ChatSettingsDrawer, Section label="Chat Name", and HelpTooltip rendering a help button inside the section header button.

Steps to reproduce

  1. On refactor commit 02eb5841, run the web shell with a valid remote runtime URL and text-generation connection.
  2. Create or open a Conversation chat.
  3. Open the Conversation settings drawer.
  4. Inspect the browser console.

Impact area

  • Chat mode
  • Shared mode UI
  • App shell, navigation, startup, or providers
  • Catalog resources
  • Roleplay mode
  • Game mode
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor / 02eb5841
  • Run mode: web shell + remote runtime
  • OS + version: Windows
  • Node + pnpm versions: Node v24.13.0, pnpm 10.33.2
  • Rust version, if relevant: rustc 1.95.0
  • Remote Runtime URL configured? yes, http://127.0.0.1:8787
  • Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider

Logs, screenshots, or video

QA evidence was captured locally under:

scratch/conversation-qa-2026-05-27T18-34-03-825Z/ledger.json

Console excerpt:

In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s <button> button
...
<ChatSettingsDrawer ...>
  <Section label="Chat Name" ...>
    <button ...>
      ...
      <HelpTooltip ...>
        <button type="button" aria-label="Show help" ...>

<%s> cannot contain a nested %s.
See this log for the ancestor stack trace. button <button>

Regression notes

Not specified.

Additional context

This was observed during the Conversation Mode refactor QA pass while opening the settings drawer for a newly created Conversation chat.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1427 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Opening the Conversation chat settings drawer logs a React invalid HTML nesting error because a help button is rendered inside another button in the settings section header. ## Expected behavior Opening Conversation settings should not log React DOM nesting or hydration errors. ## Actual behavior The browser console logs that `<button>` cannot be a descendant of `<button>`. The stack points to `ChatSettingsDrawer`, `Section label="Chat Name"`, and `HelpTooltip` rendering a help button inside the section header button. ## Steps to reproduce 1. On `refactor` commit `02eb5841`, run the web shell with a valid remote runtime URL and text-generation connection. 2. Create or open a Conversation chat. 3. Open the Conversation settings drawer. 4. Inspect the browser console. ## Impact area - [x] Chat mode - [x] Shared mode UI - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Roleplay mode - [ ] Game mode - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` / `02eb5841` - Run mode: web shell + remote runtime - OS + version: Windows - Node + pnpm versions: Node `v24.13.0`, pnpm `10.33.2` - Rust version, if relevant: `rustc 1.95.0` - Remote Runtime URL configured? yes, `http://127.0.0.1:8787` - Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider ## Logs, screenshots, or video QA evidence was captured locally under: `scratch/conversation-qa-2026-05-27T18-34-03-825Z/ledger.json` Console excerpt: ```text In HTML, %s cannot be a descendant of <%s>. This will cause a hydration error.%s <button> button ... <ChatSettingsDrawer ...> <Section label="Chat Name" ...> <button ...> ... <HelpTooltip ...> <button type="button" aria-label="Show help" ...> <%s> cannot contain a nested %s. See this log for the ancestor stack trace. button <button> ``` ## Regression notes Not specified. ## Additional context This was observed during the Conversation Mode refactor QA pass while opening the settings drawer for a newly created Conversation chat. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:32:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

On it.

<!-- gh-comment-id:4557627862 --> @SpicyMarinara commented on GitHub (May 27, 2026): On it.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor.

What changed:

  • Reworked the chat settings Section header so the collapsible button no longer wraps the help tooltip button.
  • This removes the invalid nested <button> markup while keeping the help control separate and accessible.

Verification:

  • git diff --check
  • pnpm typecheck
  • pnpm lint
  • pnpm check:architecture
  • pnpm build
  • graphify update .
<!-- gh-comment-id:4557653702 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on `refactor`. What changed: - Reworked the chat settings `Section` header so the collapsible button no longer wraps the help tooltip button. - This removes the invalid nested `<button>` markup while keeping the help control separate and accessible. Verification: - `git diff --check` - `pnpm typecheck` - `pnpm lint` - `pnpm check:architecture` - `pnpm build` - `graphify update .`
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#708
No description provided.