Skip to content

feat(platform): run GPT-6 models in chat, subscriptions only in tasks - #4181

Merged
yannickmonney merged 3 commits into
mainfrom
feat/gpt6-chat-tasks
Oct 3, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
feat/gpt6-chat-tasks

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Chat serves every model an API-key or environment credential reaches, the GPT-6 family included.

  • Direct chat now speaks the OpenAI Responses API for a model whose catalog entry declares toolCallingApi: responses, instead of refusing it. chat_wire.ts builds a third body (system prompt as instructions, input items with function_call / function_call_output pairs keyed by call_id, flat non-strict function tools, max_output_tokens, five effort levels, store: false). stream_decode.ts reads a third dialect (text, refusal and reasoning deltas, call drafts from output items and argument deltas, closing usage with cache and reasoning counts, finish reasons, error and response.failed).
  • The picker, Auto and the turn offer such a model on any OpenAI-format connector. Anthropic-format connectors never offer one. The Chat Completions model endpoints (/api/v1/openai/...) still leave it out, because they don't relay Responses.
  • Catalog: gpt-6-astra (tools only through Responses, reasoning can't be switched off) plus gpt-6-sol and gpt-6-luna (off: none, toolsRequireOff, like the 5.6 trio), per OpenAI's model pages and latest-model guide (2026-10-03). gpt-6.1-sol was already there.

Tasks serve a Responses-only model wherever its tools can run, and say so clearly where they can't.

  • Agent serving runs it on a harness that speaks Responses (Codex), on an API-key, env or ChatGPT-subscription credential. On any other harness it now refuses with the real reason, naming Codex, instead of "provider cannot serve model".
  • The agent pickers (project agent, automation agent node, standard agent), the project-agent save check, the standard agent's chooser and the Agent runtimes status offer, accept or count it only for a harness that speaks Responses.
  • The standard agent's availability read and its kick choose with the same set of Responses-capable runtimes. The Agent runtimes status now says no-compatible-model ("run it on Codex or allow another model") when direct models exist but none fits a runtime's wire, instead of claiming that no credential exists.

Subscriptions stay in tasks, and the app says why.

  • A subscription credential only works inside its vendor's runtime. Vendors don't permit these tokens in other apps, and Anthropic refuses them from any client other than Claude Code.
  • The add-credential form shows a static info notice for both subscription methods (Tasks and automations only). Every subscription row in the credentials table carries the same note. The chat model list names the providers whose subscriptions it leaves out. The direct-chat refusals now give the reason. EN/DE/FR, plus a de-CH override.

Docs (EN/DE/FR): AI providers gains "Use subscriptions in tasks, not in chat" and "Run the GPT-6 models". Harnesses, Models, Project agents, Chat basics and the editor guide carry the same facts. The manual layer gains CHAT-F59, CHAT-F60 and SET-F74, plus the automation rows that own the rest.

Verification

  • Full platform server suite: 14,303 passed, 0 failed (before the last runtime-status commit). After the rebase onto 7063f9974: tsc clean, and 58 affected suites (1,118 tests) pass.
  • UI suites for every changed surface pass (providers settings, composer, chat surface, projects, agent node, governance). Under a load average of about 130, some tests only pass with a longer timeout or a retry; those were timeouts, not assertion failures.
  • oxlint --type-aware on all changed files, oxfmt --check, lint:links (452 pages), lint:manual, check-guide on the touched suites, the platform catalog i18n checks, the docs suite, and a full docs compile all pass.
  • New tests: the Responses body (including the shipped GPT-6.1 Sol entry at each effort), the Responses stream (text, two interleaved calls, closing-argument precedence, incomplete reasons, error events, response.failed usage booking), the direct call against a stubbed fetch (Responses vs Chat Completions), the catalog walk, serving refusals, the project-agent check, the standard agent chooser, picker offers, runtime status, model API listing, and the UI notes.

An automated review pass then found that the availability read wasn't wire-aware and that the status reason was misleading; both are fixed in 4c81f9718 with regression tests. A third finding (the chat note naming a provider that also has an API key) can't occur, because only each provider's single active default credential is servable.

Not verified live

  • No reply has been observed from OpenAI itself: no OpenAI API key was available, and the planned check via OpenRouter's Responses endpoint was blocked by an expired OpenBao session. CHAT-F60 covers the live check: a GPT-6.1 Sol chat reply that uses a tool.
  • Reasoning is not carried across tool rounds within a turn (no reasoning.encrypted_content round-trip). The model reasons afresh each round, as on Chat Completions.

For the next release notes

  • Chat offers GPT-6 Astra, GPT-6 Sol, GPT-6 Luna and GPT-6.1 Sol through an OpenAI API key or environment credential; Astra and GPT-6.1 Sol are called through the Responses API.
  • Agents run Astra and GPT-6.1 Sol on Codex only, and other runtimes say why.
  • Subscription credentials are labelled as tasks-only in Settings and in the chat model list.
  • No migration and no new environment variable.

Direct chat now speaks the OpenAI Responses API for a model whose catalog
entry says its tools work only there (toolCallingApi: responses), instead
of refusing it: a third body in chat_wire (instructions, input items,
function_call / function_call_output pairs, flat non-strict tools,
max_output_tokens, five effort levels, store: false) and a third stream
dialect in stream_decode (text, refusal and reasoning deltas, call drafts
keyed by call_id, closing usage and finish reason, error and
response.failed). The picker, Auto and the turn offer such a model on any
OpenAI-format connector; the Chat Completions model endpoints keep it out.

The OpenAI catalog gains gpt-6-astra (Responses tools, no off switch),
gpt-6-sol and gpt-6-luna (off: none, toolsRequireOff), as the vendor's
model pages and latest-model guide state.

Tasks serve a Responses-only model only on a harness that speaks it
(Codex today): agent serving names the Responses API and the capable
harness instead of reporting the model missing; the project-agent check,
the standard agent's chooser, the agent pickers and the Agent runtimes
status offer, accept or count it only there.

Subscription credentials stay in tasks, inside their vendor's runtime:
the vendors permit those tokens nowhere else, and Anthropic refuses
other clients. The add form shows a static notice for both subscription
methods, every subscription row says "Tasks and automations only", the
chat model list names the subscriptions it leaves out, and the direct
chat refusals give the reason.
AI providers gains "Use subscriptions in tasks, not in chat" (why a
subscription credential works only in its vendor's runtime, where the app
says so, and how to chat with the same model) and "Run the GPT-6 models"
(chat through an API key or environment credential, Astra and GPT-6.1 Sol
on the Responses API, Codex-only in tasks). Harnesses, Models, Project
agents, Chat basics and the editor guide carry the same facts, in en, de
and fr. The manual layer gains CHAT-F59, CHAT-F60 and SET-F74 and the
automation rows that own the rest.
The standard agent's availability read chose without the runtimes that
speak the Responses API, so a ChatGPT subscription's Responses-only pin
on Codex read as unavailable while the kick would have run it. Both now
read one set, and the chooser requires it, so no call can default to
none.

The Agent runtimes status said "no direct credential" for a runtime that
had direct models but none its wire can carry; it now says why
(no-compatible-model) and points to another model or Codex, in en, de
and fr.
@yannickmonney
yannickmonney merged commit 20b6d44 into main Oct 3, 2026
@yannickmonney
yannickmonney deleted the feat/gpt6-chat-tasks branch October 3, 2026 22:44
yannickmonney added a commit that referenced this pull request Oct 4, 2026
* fix(platform): enforce project rights for run controls

Scope project run controls, transcripts and connector-operation approvals to
the project permission rule while retaining organization-level behavior.
Preserve specialized approval kinds and prove the access boundary with
native session/Postgres controls and focused regression coverage.

* fix(sandbox): bound agent execution and recover session state (#4174)

Bound agent replay, retained projections, progress writes and file transfers while preserving authoritative results and explicit recovery failures.

Apply admission to warm activation, reconcile durable session pins and stale Kubernetes capacity, and bound optional Docker/BuildKit preparation. Include regression coverage and operator documentation.

* feat(platform): run GPT-6 models in chat, subscriptions only in tasks (#4181)

* fix(sandbox): release retained command memory and bound stdin (#4185)

Release completed command payloads, disconnected HTTP consumers and tunnel listeners at their lifetime boundaries. Bound held-open stdin to an 8 MiB queue budget while preserving accepted bytes, journal replay and cancellation.

Add Node garbage-collection and backpressure regressions, listener cleanup tests, and matching runtime documentation.

* docs(manual): qualify database-unavailable reporting expectations (#4180)

The manual's DATABASE_UNAVAILABLE row read as if nothing reaches Sentry for
a whole database outage. It now says the 503s are suppressed per request,
names the one warning-level event an API process with open SSE streams
reports once the outage reaches its threshold (60 seconds by default,
reset on recovery), and the fatal startup report after the bounded boot
retry budget, as PERF-B5 and PERF-B7 already describe.

Independently reviewed by agent #4 (review task ff900bde, run 0f5ab677)
at 3626b56; merged by agent #2 (TALE-359 run e72629f1).

Closes #4044
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Post-merge independent review of #4181 at 20b6d441b (squash of 4c81f9718, merged by root at 22:44Z on 3 Oct with no review on record): the source is accepted with LOW follow-ups.

  • Reviewer: Tale agent update dashboard ui (#508) #2 3f9fdcee-79e7-430b-a430-ba179d5b5132, TALE-359 run 554ef899-2405-42cc-8bfd-e575c9b857fe.
  • Method: one read-only source reviewer, with a parallel helper for the wire and stream code. Nothing was run.
  • Squash: merge-tree 952c7ea0d 4c81f9718 equals 20b6d441b^{tree}.

The core rule holds, verified from source: chat can't use a subscription credential.

  • resolveDirectWire refuses anything but an api-key or env default credential, and a turn always runs direct.
  • Every route that picks a model in chat or the REST door filters to direct models: the composer picker and default seed, the REST door, Auto, and a governance pin.
  • Title calls and llm nodes are direct-only.
  • Agent serving refuses a Responses-only model on a wrong runtime and names Codex, with the same rule in the pickers, the save checks and the standard agent.
  • The Responses wire pairs items by call_id, maps usage without double counting, and sanitizes errors.
  • All five new keys exist in EN, DE and FR, and there is no migration or new environment variable.

LOW

  1. The copy's advice for chatting with a subscription provider's models doesn't work as written. The copy says "add an API key". Only the provider's default credential serves, though, and an added key isn't the default; a second default answers 409.
    • Making the key the default would move pinned Codex tasks from the subscription to pay-per-token, which the copy doesn't mention.
    • Nous Portal offers only subscription-key, so the advice can't be followed at all.
    • The refusals' "its own agent runtime" is wrong for Moonshot and Z.ai, which are forced onto Claude Code.
    • Where: messages/en.yml:1133, :6578 and :6622, turn_action.ts:123, and docs/*/platform/admin/providers.md:41.
  2. The manual readme totals weren't updated after CHAT-F59, CHAT-F60 and SET-F74. readme.md:32/42/55 still says 1082, 99 and 117.
  3. Hypothesis: small output caps are sent unchanged on the Responses path (chat_wire.ts:426). A REST cap below 16, or a tool round with about 10 tokens left, would get a 400 instead of settling as length.
  4. The standard agent on Automatic runtime with an Automatic model never falls back to Codex. When only Responses-only models are direct-served, it reports no-model (standard-agent.ts:208-226).
  5. Long-context billing is under-booked. The catalog lists only the price for prompts up to 272K tokens. Longer prompts bill at 2x input and 1.5x output while the window is 1.05M, so cost stamps and budget caps can undercount by up to half (models.yml:39-71).
  6. French copy:
    • fr.yml:1188 says "des fournisseurs {providers}", which is plural even for one provider and needs an ICU plural.
    • Six French docs pages say "tools" where the UI says "outils".
  7. Not a regression: the automation validator doesn't check whether an agent node's runtime can carry a Responses-only model (dispatch-store.ts:238-243).

INFO

  • Test gaps (surviving mutants):
    • the chat surface's list of subscription providers is untested (return NO_PROVIDERS survives);
    • only subscription-broker is tested, so the subscription-key case is unpinned;
    • the reasoning-summary decode test feeds events the builder never requests;
    • the register row says ✅ unit, which overstates the coverage.
  • Behaviour notes:
    • Reasoning isn't carried between tool rounds; the PR body says so.
    • A refusal ends as stop, not content-filter.
    • A catalog error replaces the "tasks only" note.
    • The picker note is a plain <p> inside the menu.
  • Unverified (open): whether Astra and 6.1-sol accept reasoning.effort: 'max'.

Routing: to the manager as follow-ups. Nothing here needs a revert.

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