Repository navigation
The main bot's free Bops computer is made after a plan read Orgo didn't answer - #60
Open
abhaypadmanabhan wants to merge 2 commits into
Open
abhaypadmanabhan wants to merge 2 commits into
abhaypadmanabhan wants to merge 2 commits into
Conversation
…'t answer, never one on the plan in its place When compute-limits failed or timed out once as the main bot's computer was made, Bops didn't know the free Bops computer was still to be made, so it asked Orgo for an ordinary computer on the plan. With the plan full (Hacker with its one computer used outside Bops), Orgo refused it and the setup said the plan was full; with room, it took the plan's computer and the free one was never made. Now the plan says when Orgo didn't answer for it (OrgoPlan.limitsUnread), and makeMainComputer asks again (freeKnown), after the main bot's workspace is found or made. Still unknown, nothing is made and the setup says why; the next task tries again. Not signed in (a self-hosted install on its own key), nothing changes. scripts/test-plan.mjs covers both plans (full and with room) and Orgo not answering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…workspace Review finding: when another user's state came in while the plan was read (a hosted server), freeKnown went on to find or make the main bot's workspace under the new state before sameUser stopped it. Now sameUser runs first. scripts/test-plan.mjs swaps the state during that read for a user with no workspace yet and checks nothing is made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
abhaypadmanabhan
force-pushed
the
dev/abhay-free-computer-after-failed-read
branch
from
October 21, 2026 20:09
37480ce to
b0f226a
Compare
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.
What was wrong
When
GET /api/billing/compute-limitsfailed or timed out once while the main bot's computer was being made,makeMainComputercouldn't tell whether the user's free Bops computer was made yet, so it asked Orgo for an ordinary computer on the plan instead:What changes
OrgoPlan.limitsUnreadsays Orgo didn't answer compute-limits (it failed, timed out, or the user owns no workspace to ask about).makeMainComputergoes throughfreeKnown: on an unread plan it finds or makes the main bot's workspace and asks Orgo again. Still unknown, nothing is made, setup says "Orgo didn't say whether your free Bops computer is made yet", and the next task tries again.bops_free_computer_id, and a free computer that is already made.Proof
scripts/test-plan.mjs: new cases for a full plan, a plan with room, Orgo not answering again, and another user's state swapped in during the read. The first failed before the fix with "Your Orgo Hacker plan includes 1 computer, and it's in use outside Bops."; all pass now (601 fake Orgo calls).test-brains,test-brains-offandtest-ws-migrationpass;tsc(app and cloud) and eslint on the touched files are clean.🤖 Generated with Claude Code