Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: buildathon join error texts

ogsamrat965ca2c73d8c
diff --git a/apps/desktop/electron/buildathon.mjs b/apps/desktop/electron/buildathon.mjs
index f6dcf7da..bbc1e80b 100644
--- a/apps/desktop/electron/buildathon.mjs
+++ b/apps/desktop/electron/buildathon.mjs
@@ -284,8 +284,8 @@ export function parseBuildathonAnswer(value) {
const JOIN_ERRORS = {
join_closed: "Joining is closed right now.",
github_required: "Link your GitHub account on omnirush.ai to join.",
- github_too_new: "Your GitHub account must be at least 30 days old to join.",
- github_inactive: "Your GitHub account needs some public activity in the last year (a public repo or contribution) to join.",
+ github_too_new: "GitHub account must be at least 3 days old.",
+ github_inactive: "Your GitHub account needs some public activity.",
github_in_use: "That GitHub account is already linked to another OmniRush account.",
already_enrolled: "This account is already enrolled.",
not_available: "Joining is not available right now.",
diff --git a/apps/desktop/electron/buildathon.test.mjs b/apps/desktop/electron/buildathon.test.mjs
index 1cd12530..5644aa12 100644
--- a/apps/desktop/electron/buildathon.test.mjs
+++ b/apps/desktop/electron/buildathon.test.mjs
@@ -380,7 +380,7 @@ test("buildathon store: join; the enrolled status, or the refusal in words", asy
const closed = await signedInStore(async () => Response.json({ error: "join_closed" }, { status: 403 }));
assert.deepEqual(await closed.buildathonJoin(), { ok: false, error: "Joining is closed right now.", closed: true });
- for (const [code, words] of /** @type {Array<[string, RegExp]>} */ ([["github_required", /Link your GitHub/], ["github_too_new", /30 days/], ["github_inactive", /public activity/], ["github_in_use", /another OmniRush account/]])) {
+ for (const [code, words] of /** @type {Array<[string, RegExp]>} */ ([["github_required", /Link your GitHub/], ["github_too_new", /3 days old/], ["github_inactive", /public activity/], ["github_in_use", /another OmniRush account/]])) {
const refused = await signedInStore(async () => Response.json({ error: code }, { status: 403 }));
assert.match(/** @type {any} */ (await refused.buildathonJoin()).error, words, code);
}