fix(server): retry Cursor text generation without sandboxing #13863
MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit into
t3code/codex-turn-mapping fromfix-cursor-text-generation-sandboxmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Yash-Singh1(GitHub profile, opens in a new tab) reopened this
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/textGeneration/CursorTextGeneration.ts line 164Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -124,8 +149,16 @@149+ local: {150+ ...agentOptions.local,151+ sandboxOptions: { enabled: false },152+ },153+ },154+ ).then((agent) => {155+ if (signal.aborted) agent.close();156+ return agent;157+ }),158+ );124159125160 const request = Effect.gen(function* () {161+ // Prefer the sandbox. When the SDK refuses it, the empty temp directory162+ // and empty setting sources still keep this run off the user's project.126163 const agent = yield* Effect.acquireRelease(127- Effect.tryPromise((signal) =>128- Agent.create(agentOptions).then((agent) => {129- if (signal.aborted) agent.close();130- return agent;131- }),164+ createCursorAgent(true).pipe(
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Macroscope has since reviewed this pull request. An earlier review was skipped by a cost limit; a review has now completed, so that notice no longer applies.