Skip to content

fix(gui): translate quota refusals on save, copy and upload; map containment (#20723) - #21013

Closed
mrveiss wants to merge 3 commits into
mainfrom
issue-20723-quota-wording
Closed

mrveiss wants to merge 3 commits into
mainfrom
issue-20723-quota-wording

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Review of the merge train found that save and copy 413 quota refusals bypass the translated refusal path used by create. All write calls in the composable now share one helper that calls the existing describeApiRefusal; the SVG map test also gains a containment check.

What Changed

  • useConversationFiles.ts: new describeFailure (wraps describeApiRefusal, falls back to extractApiErrorMessage); used by create, batch upload (a sibling that skipped it), updateFileContent and copyFile.
  • useConversationFiles.createRefusal.spec.ts: tests for the three routes plus a non-refusal control.
  • svg_migration_map_files_exist_20471_test.py: each path must resolve() inside autobot-frontend/src (is_relative_to); negative fixture with a ../ escape.
  • en.json: quotaExceeded now says the file is larger than the room left and keeps {remainingMb} (the 413 detail carries remaining_bytes).
  • PhaseProgressionIndicator.vue: scored statuses use workflow.phaseProgression.status.* keys via te(), with formatStatus as the fallback; tests with controls on the old code.
  • Changelog fragment.

Verification

  • vitest (git-archive scratch copy): 9 passed; on the old composable the three new refusal tests fail, the control passes.
  • pytest: 4 passed; the old detector reports a ../ escape file as present, the new one lists it.
  • eslint and vue-tsc clean; UI-literal, fragmentation, i18n-untranslated, locale-completeness, size ratchets pass; black, isort, flake8 clean.

Single-issue rationale

One issue (#20723); both changes are small and share its scope.

Model Used

Claude Sonnet 5.5

Closes #20723

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 7, 2026
@mrveiss mrveiss added frontend phase:M3.9 Chat, Agents, Analytics and Settings screens labels Nov 7, 2026
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a0b419b and 9877036.

Files selected for processing: 7

  • autobot-frontend/src/components/workflow/PhaseProgressionIndicator.vue
  • autobot-frontend/src/components/workflow/__tests__/PhaseProgressionIndicator.unscored.test.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.createRefusal.spec.ts
  • autobot-frontend/src/composables/useConversationFiles.ts
  • autobot-frontend/src/i18n/locales/en.json
  • changelog/unreleased/20723-quota-refusals-save-copy.md
  • repo_tests/svg_migration_map_files_exist_20471_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) at 944d412

Verdict: APPROVE

The save, copy and upload catch blocks now go through one describeFailure helper. It wraps the canonical describeApiRefusal and falls back to extractApiErrorMessage, and create is migrated onto it too, so there is no second implementation (useConversationFiles.ts:29, 213, 355, 402, 418). No blocker or major finding. The notes below are minor.

Severity file:line finding suggested fix
Minor PhaseProgressionIndicator.unscored.test.ts (new status test) The locale is reset to en as the last statement. If an assertion fails, the xx locale leaks into the following tests in the file. Restore the locale in try/finally or afterEach.
Minor useConversationFiles.createRefusal.spec.ts (uploadFiles test) The test never asserts that uploadFiles returned false. It only checks error.value. Capture the return value and assert it is false.
Minor PhaseProgressionIndicator.unscored.test.ts (quotaExceeded wording test) The test asserts substrings of the en.json text, so it checks the copy and not the behaviour. It will break on any later rewording. Drop it, or fold the wording check into the refusal spec that already renders the key.
Minor en.json quotaExceeded, new workflow.phaseProgression.status.* keys This PR changes only the English file. Other locales keep the old quotaExceeded wording until the locale generator runs. Confirm that generator step is queued.

Controls are present. The 500-with-string-detail case proves the fallback path, and the ../ escape fixture proves the new SVG-map detector is not vacuous. There are no fixed sleeps in the new tests. The 2s setTimeout in the upload finally block predates this PR.

@mrveiss

mrveiss commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Landed on main via merge train #21061 (merge commit 8248aee); every commit of head 2acc1fa is in main.

@mrveiss mrveiss closed this Nov 7, 2026
timothybrush pushed a commit to timothybrush/AutoBot-AI that referenced this pull request Nov 7, 2026
@mrveiss
mrveiss deleted the issue-20723-quota-wording branch November 8, 2026 10:30
@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Branch deleted after verification: every commit is in main and the branch shows 0 changed files against main. Restore it from this PR if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend phase:M3.9 Chat, Agents, Analytics and Settings screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(gui): quota refusals on save and copy, quota wording, phase status labels, map containment

1 participant