Skip to content

fix(session-header): call isDesktopV2() memo in Show when predicate#31875

Open
EdwardYuen wants to merge 1 commit into
anomalyco:devfrom
EdwardYuen:dev
Open

fix(session-header): call isDesktopV2() memo in Show when predicate#31875
EdwardYuen wants to merge 1 commit into
anomalyco:devfrom
EdwardYuen:dev

Conversation

@EdwardYuen

@EdwardYuen EdwardYuen commented Jun 11, 2026

Copy link
Copy Markdown

A createMemo accessor reference (always truthy) was passed to Solid's instead of calling it, so the V1 fallback icons (open-in-editor, terminal toggle, file tree toggle) never rendered.

Issue for this PR

Closes #31878

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The file tree and terminal toggle buttons were completely missing from the titlebar.

This happened because isDesktopV2 is a SolidJS memo accessor, but it was being passed into <Show when={isDesktopV2}> as a raw function reference instead of being called as isDesktopV2(). Since JavaScript functions are always truthy, the fallback V1 layout icons never had a chance to render. Calling the function fixes the reactive rendering logic.

How did you verify your code works?

bun run --cwd packages/desktop dev locally and flipped the "New layout and designs" toggles back and forth in Settings. The titlebar buttons now show up in the V1 old design.

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

A createMemo accessor reference (always truthy) was passed to Solid's
<Show when={...}> instead of calling it, so the V1 fallback icons
(open-in-editor, terminal toggle, file tree toggle) never rendered.
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

desktop version old design and layout missing "open in", toggle terminal, and toggle file tree

1 participant