GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Old layout v1 missing open-folder button in SessionHeader due to isDesktopV2 gate regression and projectDirectory missing SDK fallback · Issue #32006 · anomalyco/opencode

Old layout v1 missing open-folder button in SessionHeader due to isDesktopV2 gate regression and projectDirectory missing SDK fallback #32006

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Old layout v1 missing open-folder button in SessionHeader due to isDesktopV2 gate regression and projectDirectory missing SDK fallback#32006
Copy link
Assignees
Hona

Description

@glz0514
glz0514
opened on Jun 12, 2026
Issue body actions

Bug Description

The "open folder" / "open in file manager" button in the session header right-side controls is completely missing in the old layout (v1).

Root Cause 1 - JSX gate regression in SessionHeader

isDesktopV2 was converted to createMemo(...), but the JSX <Show> component still references it as when={isDesktopV2} (a function reference, always truthy) instead of calling it as when={isDesktopV2()}.

Buggy code:

<Show when={isDesktopV2} fallback={...old layout...}>

Fix:

<Show when={isDesktopV2()} fallback={...old layout...}>

Because the function reference is always truthy, the legacy fallback branch never renders.

Root Cause 2 - projectDirectory lacks SDK fallback

The projectDirectory memo only reads from params.dir:

const projectDirectory = createMemo(() => decode64(params.dir) ?? "");

When a local session does not have a dir route parameter, this returns empty and the button is hidden.

Fix:

const projectDirectory = createMemo(() => decode64(params.dir) ?? "");
const resolvedProjectDirectory = createMemo(() => projectDirectory() || sdk.directory || "");

Then use resolvedProjectDirectory() instead of projectDirectory() in:

  • project() lookup
  • name() display
  • openDir() function
  • copyPath() function
  • The Show condition for the button group

Environment

  • OpenCode Desktop v1.17.3 (also verified on v1.16.x)
  • Windows 11
  • Search box, file-tree, review buttons all render correctly - only the open-folder button is missing

Additional Context

This is separate from issue #29875 (V2 missing open-folder). The old layout has the button in its code but two regressions prevent it from rendering.

Both fixes were verified locally by patching the installed app.asar session bundle and confirmed working after restart.

Activity

  1. github-actions
    assigned
    Hona
    on Jun 12, 2026
  2. github-actions commented on Aug 12, 2026

    @github-actions
    github-actionsBot
    on Aug 12, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  3. github-actions
    closed this as not plannedon Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Hona
    Hona

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.