Skip to content

fix(providers): include Agnes model in video polling - #12356

Merged
diegosouzapw merged 4 commits into
diegosouzapw:release/v3.8.51from
pacocartones:fix/agnes-poll-model-name
Sep 11, 2026
Merged

diegosouzapw merged 4 commits into
diegosouzapw:release/v3.8.51from
pacocartones:fix/agnes-poll-model-name

Conversation

@pacocartones

Copy link
Copy Markdown
Contributor

Summary

  • include the submitted Agnes video model as model_name when polling by video_id
  • URL-encode the effective model in the shared job poll builder
  • cover both the built-in Agnes provider and a custom provider using the Agnes job preset

Related Issues

Validation

  • Change type: provider
  • Focused tests and category gates from the golden path: tests/unit/agnes-provider.test.ts + tests/unit/video-custom-provider-route.test.ts 17/17, npm run typecheck:core exit 0, check:open-sse-typecheck PASS, focused ESLint exit 0, check:changelog-integrity PASS, check:provider-consistency PASS, check:provider-assets PASS
  • npm run lint — exit 0 on the current tip (repository-wide)
  • Reconciled with the current active release base release/v3.8.51@158647618 (merge, no rewrite); focused checks rerun afterward
  • Production-code changes include updated automated tests in this PR
  • SonarQube is temporarily opt-in while the private project has no quota; it is not a PR gate.

Tests Added Or Updated

  • tests/unit/agnes-provider.test.ts — asserts the exact poll URL includes &model_name=<effective model>
  • tests/unit/video-custom-provider-route.test.ts — the custom-provider route's strict fetch double now requires the complete poll URL for a custom effective model

Coverage Notes

  • open-sse/handlers/videoGeneration/job.ts (Agnes preset + shared poll builder) is exercised by both test files above.
  • Presets without a {model} placeholder are unchanged: String.replace() is a no-op when the token is absent.

Reviewer Notes

  • Only the Agnes preset gains the {model} token; the shared builder resolves it with encodeURIComponent(model).
  • No behaviour change for Muapi/Sora presets.

pacocartones and others added 3 commits September 1, 2026 18:30
Co-authored-by: Leon Marcos <leonaniagomez@gmail.com>
Co-authored-by: Leon Marcos <leonaniagomez@gmail.com>
Co-authored-by: Leon Marcos <leonaniagomez@gmail.com>
…2356

Co-authored-by: Leon Marcos <leonaniagomez@gmail.com>
pacocartones added a commit to pacocartones/OmniRoute that referenced this pull request Sep 1, 2026
@pacocartones
pacocartones force-pushed the fix/agnes-poll-model-name branch from 8ba03f4 to 85913f4 Compare September 1, 2026 23:22
@diegosouzapw
diegosouzapw merged commit 6caf836 into diegosouzapw:release/v3.8.51 Sep 11, 2026
16 checks passed
Githab-capibara added a commit to Githab-capibara/OmniRoute that referenced this pull request Sep 17, 2026
)

Straightforward and complete: polling by `video_id` without `model_name` could not identify the job, and URL-encoding in the shared builder covers the custom-provider preset as well as the built-in.

---

Validated in one consolidated worktree cut from `release/v3.8.51`, boarded with the rest of this batch — zero conflicts between the 19 PRs.

- `typecheck:core` clean; `check:dashboard-typecheck` OK (206 pre-existing, all within the frozen baseline); `check:changelog-integrity` OK
- complexity 2802 / baseline 3218 and cognitive-complexity 1267 / baseline 1437 — both under baseline
- 226 of 228 focused assertions green across the batch's 23 test files. The 2 remaining belong to diegosouzapw#12551, which is held separately.

Two batch-owned defects were found and fixed in flight, both pure base drift: `173_xp_action_counts.sql` collided with `173_call_logs_video_content_removed.sql` (renumbered to 176 on diegosouzapw#12651 — it aborted every DB open, which is what 53 of the first run's failures were), and the feature-flag catalog was missing the `SERVER_OWNED_TOOL_LOOP_ENABLED` row the base gained after diegosouzapw#12552 was written.

⚠️ base-red inherited: diegosouzapw#12732 — `Docs Gates`, `Merge integrity`, `No new ESLint warnings`, `Unit Tests fast-path` and `Fast Quality Gates` reproduce on the pure tip (provider count 356 vs the 358 the modules define, SKILL.md drift, and `open-sse/utils/stream.ts` at 3115 > frozen 3098, which this batch does not touch).

Thanks @pacocartones — the `file:line` citations and the explicit out-of-scope notes on every one of these made a 19-PR batch reviewable in one pass.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
)

Straightforward and complete: polling by `video_id` without `model_name` could not identify the job, and URL-encoding in the shared builder covers the custom-provider preset as well as the built-in.

---

Validated in one consolidated worktree cut from `release/v3.8.51`, boarded with the rest of this batch — zero conflicts between the 19 PRs.

- `typecheck:core` clean; `check:dashboard-typecheck` OK (206 pre-existing, all within the frozen baseline); `check:changelog-integrity` OK
- complexity 2802 / baseline 3218 and cognitive-complexity 1267 / baseline 1437 — both under baseline
- 226 of 228 focused assertions green across the batch's 23 test files. The 2 remaining belong to diegosouzapw#12551, which is held separately.

Two batch-owned defects were found and fixed in flight, both pure base drift: `173_xp_action_counts.sql` collided with `173_call_logs_video_content_removed.sql` (renumbered to 176 on diegosouzapw#12651 — it aborted every DB open, which is what 53 of the first run's failures were), and the feature-flag catalog was missing the `SERVER_OWNED_TOOL_LOOP_ENABLED` row the base gained after diegosouzapw#12552 was written.

⚠️ base-red inherited: diegosouzapw#12732 — `Docs Gates`, `Merge integrity`, `No new ESLint warnings`, `Unit Tests fast-path` and `Fast Quality Gates` reproduce on the pure tip (provider count 356 vs the 358 the modules define, SKILL.md drift, and `open-sse/utils/stream.ts` at 3115 > frozen 3098, which this batch does not touch).

Thanks @pacocartones — the `file:line` citations and the explicit out-of-scope notes on every one of these made a 19-PR batch reviewable in one pass.
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.

fix(providers): video via /v1/videos/generations — Agnes poll returns 404 task not found (missing model_name in agnes-video-job poll)

2 participants