Skip to content

feat: cancel a running AI spend detailed report - #32481

Merged
ssncferreira merged 4 commits into
ssncf/ai-spend-report-runfrom
ssncf/ai-spend-report-cancel
Nov 24, 2026
Merged

ssncferreira merged 4 commits into
ssncf/ai-spend-report-runfrom
ssncf/ai-spend-report-cancel

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Run report turns into Cancel while the report builds. Canceling aborts the request.

Changes

  • Pass the abort signal to the report request, and from the user query factory to the user lookup.
  • Cancel the report queries with queryClient.cancelQueries.
  • Return to the empty state when the first run is canceled, since it has no rows to show.
  • Return to the shown page when a page change is canceled, so the rows match the page number.
  • Add tests for canceling a run and a page change.

Related to AIGOV-731

Note

Generated by Coder Agents on behalf of @ssncferreira.

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

AIGOV-731

@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 62072ec to 66cc617 Compare November 20, 2026 09:05
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 66cc617 to 9130e27 Compare November 20, 2026 09:23
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 9130e27 to 16234b7 Compare November 20, 2026 09:33
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 16234b7 to eb3c449 Compare November 20, 2026 09:51
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from eb3c449 to 56b64d1 Compare November 20, 2026 10:50
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 56b64d1 to 5ac339e Compare November 20, 2026 11:04
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 5ac339e to 61e7f82 Compare November 20, 2026 11:15
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 61e7f82 to 1171d06 Compare November 20, 2026 11:26
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 1171d06 to 6a78ba6 Compare November 20, 2026 11:34
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 6a78ba6 to 49c06af Compare November 20, 2026 11:39
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 49c06af to 31fd6cb Compare November 20, 2026 11:51
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from 31fd6cb to e4f8707 Compare November 20, 2026 12:00
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from e4f8707 to f10cbaf Compare November 20, 2026 12:09
@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-report-cancel branch from f10cbaf to c58a759 Compare November 20, 2026 12:17

@jeremyruppel jeremyruppel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 nonblocking observation

This branch had an error being deployed

1 failed deployment
docs-preview — 7538a753 Deployed Nov 24, 2026 by ssncferreira via cleanup #417
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.

3 participants