Skip to content

fix: reach projects the sidebar keeps behind Show more - #83

Merged
youdie006 merged 2 commits into
mainfrom
fix/sidebar-projects-show-more
Oct 30, 2026
Merged

youdie006 merged 2 commits into
mainfrom
fix/sidebar-projects-show-more

Conversation

@youdie006

Copy link
Copy Markdown
Owner

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:

  • A --project send to any of those 16 failed as "project not found in sidebar (9 projects visible)".
  • prodex pro browser projects listed 9 of 25.
  • --continue could 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:

    • the ghost button of such a section;
    • outside every project row;
    • not the section toggle;
    • with the English text "Show more" as a fallback.

    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 projects and listChatGptProjectsWithIds (used by --continue and 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 in tests/sidebar-projects-show-more.test.ts fail without the change.
  • Live on WSL, sidebar collapsed after a reload:
    • 0.40.48 pro browser projects listed 9 projects; this build listed 25.
    • One project that was hidden was compared in the page, its name kept in sessionStorage and never printed. projectItemRectExpression returned "project not found in sidebar (9 projects visible ...)" before the expand expression, and found the row with a click point after it.
  • Not done: an end-to-end --project send to a hidden project. That would post a test message into a real user project.

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
@github-actions

Copy link
Copy Markdown

What this touches

  • browser adapter
  • tests

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T08:59:22.947165Z f5340a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@youdie006
youdie006 merged commit be947df into main Oct 30, 2026
7 checks passed
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
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.

1 participant