Skip to content

[Fix] Task Info preserves each task's inference provider#436

Merged
mrubens merged 2 commits into
developfrom
fix/chatgpt-task-info-label-3lr6v9zvxl9xe
Jul 16, 2026
Merged

[Fix] Task Info preserves each task's inference provider#436
mrubens merged 2 commits into
developfrom
fix/chatgpt-task-info-label-3lr6v9zvxl9xe

Conversation

@roomote-roomote

@roomote-roomote roomote-roomote Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Opened on behalf of Matt Rubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

Tasks now snapshot their resolved inference provider at launch. Task Info reads that immutable snapshot, so ChatGPT subscription-backed tasks remain labeled ChatGPT (subscription) even if deployment credentials later change.

The sidebar retains model-prefix labels for legacy tasks recorded with the former generic opencode provider value.

Why this change was made

The previous implementation inferred the label from the deployment's current ChatGPT connection state, which could relabel historical tasks incorrectly after a provider connection changed.

Impact

Task Info accurately reflects the provider used for new tasks across later configuration changes, while preserving sensible labels for existing tasks.

@roomote-roomote

roomote-roomote Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

All issues addressed. See task

  • apps/web/src/app/(sandbox)/task/[taskId]/sidebar-panels/TaskInfoPanel.tsx:204-207 Derive the displayed provider from immutable task/run data rather than the deployment's current chatgptConnected state. Addressed by snapshotting the resolved provider at task launch and preserving the legacy model-prefix fallback.

@roomote-roomote

roomote-roomote Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in b36e390: fresh tasks now persist the resolved provider at launch, and Task Info uses that immutable snapshot. Legacy opencode task records retain the prior model-prefix fallback. Focused Task Info tests and both changed-workspace type checks pass.

@roomote-roomote roomote-roomote Bot changed the title [Fix] Task Info shows ChatGPT subscription for subscription-backed models [Fix] Task Info preserves each task's inference provider Jul 16, 2026
@mrubens
mrubens marked this pull request as ready for review July 16, 2026 18:00
@mrubens
mrubens merged commit e479181 into develop Jul 16, 2026
16 checks passed
@mrubens
mrubens deleted the fix/chatgpt-task-info-label-3lr6v9zvxl9xe branch July 16, 2026 18:00
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