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 — fix(tui): load root sessions safely in dialogs by CasualDeveloper · Pull Request #31132 · anomalyco/opencode

Conversation

@CasualDeveloper

@CasualDeveloper CasualDeveloper commented Jun 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #16270
Closes #31125
Partially addresses #13877
Supersedes #23276, #24383, #26432

Type of change

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

What does this PR do?

Problem: Session dialogs built options from mixed or not-yet-loaded session data, which let child sessions crowd out roots and could freeze an empty browse order during startup.

Solution:

  • Request root sessions from dialog-local browse and search resources.
  • Freeze browse order only after the root browse load resolves.
  • Share query/order helpers across both TUI session dialog implementations.

How did you verify your code works?

  • bun test test/cli/tui/dialog-session-list.test.ts
  • bun turbo typecheck
  • Built a test binary from the commit branch and checked that sessions are visible

Screenshots / recordings

N/A. This changes session query/loading behavior, not the rendered layout.

Notes

  • AI Assistance: OpenCode + openai/gpt-5.5
  • Review: Human operator reviewed

Checklist

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

CasualDeveloper, antomicblitz, and jensenojs reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@github-actions github-actions Bot added the contributor label Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found a related PR:

PR #26432: fix(tui): request root sessions in session dialog

  • URL: fix(tui): request root sessions in session dialog #26432
  • Why it's related: This PR is directly superseded by the current PR (as noted in the description: "Supersedes fix(tui): request root sessions in session dialog #26432"). PR fix(tui): request root sessions in session dialog #26432 addresses the same issue of requesting root sessions in session dialogs, which is the core problem being fixed by PR fix(tui): load root sessions safely in dialogs #31132.

The current PR (#31132) represents an improved/updated fix that builds upon the earlier approach in #26432.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 6, 2026
fix(tui): request root sessions in session dialog #26432
Closed
/sessions TUI only shows recent sessions, ignores historical ones #16270
Closed
@CasualDeveloper
CasualDeveloper marked this pull request as draft June 6, 2026 21:26
@CasualDeveloper
CasualDeveloper force-pushed the fix/16270-tui-root-session-dialog-loading branch from 72d361b to bdcc5ba Compare June 6, 2026 21:50
@CasualDeveloper
CasualDeveloper marked this pull request as ready for review June 6, 2026 21:51
@antomicblitz

antomicblitz commented Jun 7, 2026

Copy link
Copy Markdown

Yes please 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 7, 2026
📊 AI CLI 工具社区动态日报 2026-06-07 jasonalang/big_model_radar#51
Open
📊 AI CLI 工具社区动态日报 2026-06-07 litang9/big_model_radar#26
Open
@CasualDeveloper CasualDeveloper mentioned this pull request Jun 7, 2026
TUI sessions dialog can stay empty if opened before session list loads #31125
Closed
@CasualDeveloper
CasualDeveloper force-pushed the fix/16270-tui-root-session-dialog-loading branch 2 times, most recently from c162859 to 14b3b8d Compare June 14, 2026 17:46
@antomicblitz

antomicblitz commented Jun 14, 2026

Copy link
Copy Markdown

Cmon guys this is such a simple fix. Just merge it

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CasualDeveloper
CasualDeveloper force-pushed the fix/16270-tui-root-session-dialog-loading branch 2 times, most recently from 5a0c48a to 3a73283 Compare June 16, 2026 11:26
This was referenced Jun 16, 2026
feat(tui): add session_list_limit for session picker #6138
Closed
[QUESTION] Configurable session picker limit (#6138) #20754
Closed
@CasualDeveloper
CasualDeveloper force-pushed the fix/16270-tui-root-session-dialog-loading branch 2 times, most recently from 31bd14d to 460e883 Compare June 19, 2026 21:00
@CasualDeveloper
fix(tui): load root sessions safely in session dialogs
5c7acd5
Problem: Session dialogs built options from mixed or not-yet-loaded session data, which let child sessions crowd out roots and could freeze or stall an empty browse order during startup.\n\nSolution: Query root sessions from dialog-local resources, keep the selector mounted while browse loads, and use parent-owned filtering so search narrows immediately while debounced server search augments off-page matches.\n\nNotes: Refs anomalyco#16270 and anomalyco#31125.
@CasualDeveloper
CasualDeveloper force-pushed the fix/16270-tui-root-session-dialog-loading branch from 460e883 to 5c7acd5 Compare June 23, 2026 15:03
@CasualDeveloper

CasualDeveloper commented Jun 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Closing this as superseded by #33931, which landed the session switcher root-session loading fix on dev and closed #16270.

and thank you @antomicblitz for the upvote!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CasualDeveloper CasualDeveloper closed this Jun 27, 2026
@CasualDeveloper
CasualDeveloper deleted the fix/16270-tui-root-session-dialog-loading branch June 27, 2026 14:25
@5h4d0wn1k 5h4d0wn1k mentioned this pull request Sep 26, 2026
fix(core): treat an empty session subpath as no subpath #51514
Closed
3 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

TUI sessions dialog can stay empty if opened before session list loads /sessions TUI only shows recent sessions, ignores historical ones

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@CasualDeveloper @antomicblitz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.