Skip to content

Fix: restore Projects and Chats sidebar sections - #18

Open
xIGBClutchIx wants to merge 1 commit into
davej:mainfrom
xIGBClutchIx:fix/project-sidebar-sections
Open

Fix: restore Projects and Chats sidebar sections#18
xIGBClutchIx wants to merge 1 commit into
davej:mainfrom
xIGBClutchIx:fix/project-sidebar-sections

Conversation

@xIGBClutchIx

Copy link
Copy Markdown
Contributor

Summary

This restores separate Projects and Chats sections in Pocodex so project-backed conversations once again render under Projects, matching desktop Codex.

What changed

  • read Codex auth identifiers from ~/.codex/auth.json and pass that auth state into the browser bootstrap payload
  • seed pocodex_auth_state, host_config, and remote_connections into the shared-object snapshot bridge that the current desktop webview reads during startup
  • patch extracted and cached use-auth webview assets so the bundle reads accountId, email, and userId from the Pocodex bridge instead of hardcoded null values
  • pass the real desktop version, buildFlavor, and buildNumber through the CLI/runtime and vscode://codex/extension-info bridge path
  • add focused regression coverage for auth parsing, bootstrap shared-object snapshots, extension info plumbing, and the webview auth patch path

Root cause

  • Pocodex left the desktop auth snapshot empty, so the current use-auth bundle fed null account and user identifiers into the webview
  • Pocodex also returned placeholder extension-info, so the current bundle evaluated its grouping gate against the wrong app identity
  • once those startup contracts were wrong, project-backed conversations fell through into the Chats list instead of rendering under Projects

Impact

  • project folders render under Projects again and Chats stays separate
  • the current desktop bundle receives the auth and extension metadata it expects during startup
  • focused regressions now cover the restored auth/bootstrap contract and patched webview path

Validation

  • pnpm run check:commit
  • pnpm exec vitest run test/app-server-bridge-basic.test.ts test/bootstrap-script.test.ts test/codex-bundle.test.ts test/codex-auth.test.ts
  • pnpm run build
  • node dist/cli.js --dev --listen 127.0.0.1:8822
  • live local verification on http://127.0.0.1:8822/ that the left sidebar shows Projects with project folders underneath and a separate Chats section with No chats

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