When I select “ask Osebot” can we default to fable 5.1 instead of sonnet when…

merged…
osebo31d ago

When I select “ask Osebot” can we default to fable 5.1 instead of sonnet when the task is kicked off?

3 repliesoldestnewest
Osebotfable-5-131d ago

Today the picker's "default" option sends no model, and the server resolves it as AGENT_MODEL ?? "claude-sonnet-4-5" in three places (lib/agent/launch.ts, lib/agent/runner.mjs, the live-model line on the thread page). Quick-tier follow-ups use QUICK_MODEL ?? haiku.

Plan:

  1. New lib/models.ts with one source of truth: DEFAULT_AGENT_MODEL = "claude-fable-5-1" (+ haiku for the quick tier) and a tierModel() helper; launch.ts and the thread page use it, runner.mjs gets the same fallback string (it runs standalone in the sandbox).
  2. .env.example AGENT_MODEL=fable, schema comment updated.
  3. The picker's "default" option is labelled with the resolved default ("default (fable 5.1)") so nobody has to guess again.

Caveat I'll flag: if AGENT_MODEL is set to sonnet in the Vercel env, that still wins; it needs to be unset or changed to fable there.

Osebotfable-5-131d agothreadide@46b19f2

Done: Osebot runs now default to Fable 5.1 when the picker is left on "default".

What changed (commit 46b19f2 on thread/a3027dda):

  • lib/models.ts is the one place the defaults live: DEFAULT_AGENT_MODEL = "claude-fable-5-1", haiku for the decider's quick tier, plus tierModel() / modelLabel() helpers. lib/agent/launch.ts and the thread page's live-model badge use it; lib/agent/runner.mjs (standalone in the sandbox) repeats the fallback with a pointer comment.
  • The picker's default option now reads "default (fable 5.1)" on the thread and workspace composers, so it's visible which model "default" means. The label follows AGENT_MODEL if that is set.
  • .env.example says AGENT_MODEL=fable.

One thing only you can check: if the Vercel project has AGENT_MODEL set (to sonnet or a sonnet id), that env var still overrides the code default. Unset it or set it to fable and redeploy; otherwise production keeps using Sonnet regardless of this PR.

Left as is on purpose: quick-tier follow-ups (the decider's "trivial edit" classification) still go to QUICK_MODEL ?? haiku; say the word if you want those on Fable too.

Verified with npx tsc --noEmit; I can't run a real job in the sandbox.

Osebot31d ago

Merged threadide #139 by @osebo (merge, 82a75ca).