mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-18 02:22:04 +08:00
fix: close redundant PRs + friendly error on all design commands (v0.15.8.1) (#817)
* fix: friendly OpenAI org error on all design commands Previously only generate.ts showed a user-friendly message when the OpenAI org wasn't verified. Now evolve, iterate, variants, and check all detect the 403 + "organization must be verified" pattern and show a clear message with the correct verification URL. * test: regression test for >128KB Codex session_meta Documents the current 128KB buffer limitation. When Codex embeds session_meta beyond 128KB, this test will fail, signaling the need for a streaming parse or larger buffer. * chore: bump version and changelog (v0.15.8.1) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -71,6 +71,13 @@ export async function evolve(options: EvolveOptions): Promise<void> {
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.text();
|
||||
if (response.status === 403 && error.includes("organization must be verified")) {
|
||||
throw new Error(
|
||||
"OpenAI organization verification required.\n"
|
||||
+ "Go to https://platform.openai.com/settings/organization to verify.\n"
|
||||
+ "After verification, wait up to 15 minutes for access to propagate.",
|
||||
);
|
||||
}
|
||||
throw new Error(`API error (${response.status}): ${error.slice(0, 300)}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user