Skip to content

fix: show Research Agents before sign-in - #642

Merged
MrParamecium merged 2 commits into
mainfrom
fix/guest-research-agent-shelf
Oct 16, 2026
Merged

MrParamecium merged 2 commits into
mainfrom
fix/guest-research-agent-shelf

Conversation

@MrParamecium

Copy link
Copy Markdown
Collaborator

Signed-out visitors to My Agents lost the entire Research Agents shelf because its authenticated list returned 401. Fall back to the existing public marketplace catalog on 401 and show research cards with a Sign in to use action. Keep owner-only added-state, removal, workbench, run and report authorization unchanged. Restore shelf visibility on rerender and show a recoverable message for load failures. Bump app.js cache version.

Validation: 50 tests passed, including executing the real shelf renderer for guests, authenticated owners and service failures; node syntax check and git diff --check passed. Browser visual verification and production deployment are not yet performed.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentic-trading-lab Ready Ready Preview Oct 16, 2026 6:14am UTC

@MrParamecium

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T06:07:53.853633Z 526710d Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 526710d764

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread dashboard/frontend/app.js
} catch (error) {
if (error?.status !== 401) throw error;
guest = true;
const catalog = await API.get(`${API_BASE}/api/v1/agents/marketplace`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Discard stale guest renders after sign-in

If a visitor signs in while this marketplace fetch is pending, the sign-in flow triggers another renderResearchShelf() through loadAgentsNow(), but the older guest invocation can resume afterward and overwrite the authenticated cards with “Sign in to use” buttons and no Remove actions. Because concurrent renders are neither serialized nor checked against the current authentication state, a slow catalog response can leave a signed-in user seeing the guest shelf until another refresh; discard stale results or revalidate auth before applying the fallback.

Useful? React with 👍 / 👎.

@MrParamecium
MrParamecium merged commit 7ce156a into main Oct 16, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3d4403cb Deployed Oct 16, 2026 by vercel[bot]
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