Repository navigation
fix: reach projects the sidebar keeps behind Show more - #83
Merged
Merged
Conversation
The ChatGPT sidebar lists only its first projects and keeps the rest out of the page until "Show more" is pressed. Measured 2026-10-30 on WSL: 9 project rows (4 pinned, 5 under Projects), and the press added 16 more. A --project send for any of those 16 failed as "project not found in sidebar (9 projects visible)", `pro browser projects` listed 9 of 25, and --continue could not read their ids. - expandSidebarProjectsExpression presses the ghost button of a sidebar section that lists projects (outside every row, not the section toggle; English text as a fallback) and waits for the rows it adds. - findSidebarProjectRow polls for the row as before and shows the rest once when the name is not among those listed. The send's project step uses it. - The project listings show the rest first. The sidebar has nothing to fold the list again, so it stays shown. Verified: tsc, npm test (1855 passed, 3 skipped); the five new tests fail without the change. Live on WSL with the sidebar collapsed: 0.40.48 listed 9 projects, this build 25. A hidden project, compared in the page without its name leaving it, was "not found (9 projects visible)" before the expression and found with a click point after. No prompt was sent to a real project. Claude-Session: https://claude.ai/code/session_01EMqNwnnhHXznd2P2PDsaDV
What this touches
3 file(s), 253 line(s) changed. Tests changed. This is an automated first pass, not a review. CI is the gate; a person decides. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
youdie006
added a commit
that referenced
this pull request
Oct 30, 2026
The sidebar lists only its first projects and keeps the rest out of the page until "Show more" is pressed; a --project send for a hidden project failed as "project not found in sidebar (9 projects visible)". The container's sidebar has the same structure (read 2026-10-30: 4 pinned, 5 under Projects, the ghost "Show more" button). Adapted: this branch finds the target with locateProjectNavigationTarget (hover and hit test), so findSidebarProjectRow wraps that, and the test's fake CDP answers the hover and hit test. The expression and the listing changes are main's. The selector check still reports a hidden project as missing rather than pressing anything. Verified: tsc, build, npm test (2160 passed, 3 skipped). Not run against the container browser: its image has not been rebuilt. Claude-Session: https://claude.ai/code/session_01EMqNwnnhHXznd2P2PDsaDV
youdie006
added a commit
that referenced
this pull request
Oct 30, 2026
Merging PR #83 after #79-#81 left two "## Unreleased / ### Fixed" headings: git joined the branch's new section and main's without a conflict. The four entries are now one list. Claude-Session: https://claude.ai/code/session_01EMqNwnnhHXznd2P2PDsaDV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The ChatGPT sidebar lists only its first projects. The rest are not in the page until "Show more" under the Projects section is pressed.
Measured 2026-10-30 on WSL: 9 project rows (4 pinned, 5 under Projects), and pressing "Show more" added 16 more. As a result:
--projectsend to any of those 16 failed as "project not found in sidebar (9 projects visible)".prodex pro browser projectslisted 9 of 25.--continuecould not read their ids from the sidebar.Change
expandSidebarProjectsExpression()presses the "Show more" button of a sidebar section that lists projects, then waits for the rows it adds. The button has no label, so it is found by structure:Other buttons stay untouched: "Add new project", row controls, and the Recents section's own list.
findSidebarProjectRow()polls for the row as before. When the name is not among those listed, it shows the rest once. The send's project step now uses it.pro browser projectsandlistChatGptProjectsWithIds(used by--continueand the TUI) show the rest first.The sidebar has no control to fold the list again, so it stays expanded until the page reloads.
Verification
tsc,npm test: 1855 passed, 3 skipped. The five new tests intests/sidebar-projects-show-more.test.tsfail without the change.pro browser projectslisted 9 projects; this build listed 25.projectItemRectExpressionreturned "project not found in sidebar (9 projects visible ...)" before the expand expression, and found the row with a click point after it.--projectsend to a hidden project. That would post a test message into a real user project.