Skip to content

fix(atlas): wire the canvas Initialize button to the deterministic endpoint#114

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/atlas-init-button
Jul 6, 2026
Merged

fix(atlas): wire the canvas Initialize button to the deterministic endpoint#114
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/atlas-init-button

Conversation

@aayambansal

Copy link
Copy Markdown
Member

The web half of "Atlas doesn't create the graph."

Bug

The canvas's "initialize this project's graph" button dropped /initialize-atlas-graph into the chat composer and sent it — i.e. it asked the agent to create the graph, inheriting every fragility of the prompt path (skipped when the atlas binary is absent, or on a short task). Meanwhile initGraph() — which calls thesisAPI.initProjectPOST /api/thesis/project/init (the deterministic find-or-create endpoint that returns a project_id), then refetches and selects the new root — was defined but wired to nothing (dead code), and busy={initializing()} was dead with it.

Fix

Point the primary button at initGraph() so it deterministically creates the graph without the agent or the atlas binary, and toasts a typed error on failure (initializing() now drives the busy state). The secondary "chat" action still drops the skill invocation (without sending) so the user can review/run it — handy when the direct call reports a plan/auth issue to resolve in chat.

Verification

typecheck (workspace tsgo -b) + prettier clean; bun run --cwd frontend/workspace build succeeds.

…dpoint

The 'initialize this project's graph' button dropped '/initialize-atlas-graph'
into the chat composer and sent it, delegating graph creation to the AGENT —
inheriting every fragility of the prompt path (skipped when the atlas binary
is absent, or on short tasks). Meanwhile initGraph(), which calls
thesisAPI.initProject → POST /api/thesis/project/init (the proven
find-or-create endpoint) and then refetches + selects the new root, was
defined but wired to nothing, and busy={initializing()} was dead.

Point the primary button at initGraph() so it deterministically creates the
graph without the agent or the atlas binary, and surfaces a typed error toast
on failure. The secondary 'chat' action still drops the skill invocation for
review when the user wants to resolve a plan/auth issue in chat.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 6, 2026 3:58pm

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit e7a9b1b into main Jul 6, 2026
12 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/atlas-init-button branch July 6, 2026 16:00
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