Skip to content

fix: use navigate for Electron session links#22024

Closed
ahmedfe wants to merge 1 commit intoanomalyco:devfrom
ahmedfe:fix/load-session
Closed

fix: use navigate for Electron session links#22024
ahmedfe wants to merge 1 commit intoanomalyco:devfrom
ahmedfe:fix/load-session

Conversation

@ahmedfe
Copy link
Copy Markdown

@ahmedfe ahmedfe commented Apr 11, 2026

Issue for this PR 22024

Closes #22024

Type of change

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

What does this PR do?

Fixes an Electron issue where clicking a session from the sidebar could leave the session view empty, even though selecting the workspace loaded the last session correctly.

The change updates session sidebar navigation to call the router's navigate() API explicitly instead of relying only on link navigation. This matches the working workspace navigation path and fixes the empty session view when switching sessions in Electron.

How did you verify your code works?

Tested locally in the Electron app by switching between sessions from the sidebar and confirming the selected session now loads correctly.

I also ran bun typecheck in packages/app, but it is currently blocked by a pre-existing unrelated error in packages/app/src/custom-elements.d.ts.

Screenshots / recordings

Not included.

Checklist

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

@ahmedfe ahmedfe requested a review from adamdotdevin as a code owner April 11, 2026 10:12
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@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.

@ahmedfe
Copy link
Copy Markdown
Author

ahmedfe commented Apr 11, 2026

this is the pr number 22024

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 11, 2026
@github-actions github-actions bot closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant