Skip to content

✨ Scoutbot assistant: local Codex provider fallback#196

Merged
arach merged 2 commits into
mainfrom
feat/scoutbot-codex
Jun 5, 2026
Merged

✨ Scoutbot assistant: local Codex provider fallback#196
arach merged 2 commits into
mainfrom
feat/scoutbot-codex

Conversation

@arach
Copy link
Copy Markdown
Owner

@arach arach commented Jun 5, 2026

Adds a Codex provider to the Scoutbot assistant so it works without an OpenAI key. Split out of the feat/web-design-system working tree.

  • Service (scoutbot-assistant.ts) — callAssistantModel abstracts the model call behind an openai | codex provider, selected by OPENSCOUT_SCOUTBOT_ASSISTANT_PROVIDER (default auto). Sessions track responseProvider so OpenAI previousResponseId and Codex threadId are threaded correctly. Brief TTS polish stays OpenAI-only.
  • Server (create-openscout-web-server.ts) — default invokeCodex drives the codex app-server (read-only sandbox, never approval); overridable via the new scoutbotAssistant.invokeCodex option.

Verification

  • bun test — assistant fallback tests (4 pass) + scoutbot-assistant.test.ts (3 pass)
  • tsc --noEmit — no errors in scoutbot-assistant.ts / create-openscout-web-server.ts

Note: edits create-openscout-web-server.ts in a region disjoint from #195 (Plans); the two auto-merge.

arach added 2 commits June 5, 2026 13:36
Abstract the assistant model call behind callAssistantModel with an
openai | codex provider, gated by OPENSCOUT_SCOUTBOT_ASSISTANT_PROVIDER (auto).
Sessions track responseProvider so OpenAI response-ids and Codex thread-ids
are threaded correctly; brief TTS polish stays OpenAI-only.
Wire a default ScoutbotCodexAssistantInvoker that drives the codex app-server
(read-only, never-approve) so the assistant answers without an OpenAI key.
Overridable via the scoutbotAssistant.invokeCodex option for tests.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openscout Skipped Skipped Jun 5, 2026 5:36pm

@arach arach merged commit edc564d into main Jun 5, 2026
3 checks passed
@arach arach deleted the feat/scoutbot-codex branch June 5, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant