You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Approved defect fixes with no open thread, oldest first. Must not land ahead of the train carrying the migrations fix (PR #20691). This merge train is built on current main.
…codes and a pending-removal split (#20217)
The quota is a conditional insert in the manager (create, agent-create, upload and content update all pass it),
so concurrent writers cannot overshoot. A 413 carries a stable code and live / pending-removal bytes, the chat
maps them to translated text, and uploaded_by gains an index. Depends on #20540 for the pending-removal queue.
The maturity bar (line 31) and each phase bar (line 102) set role="progressbar" without aria-label or aria-labelledby. WAI-ARIA 1.2 requires a name for progressbar, so screen readers announce a value without its context. Add a name to each bar. No consumer in autobot-frontend/src renders this component at head.
Emit ON_TOOL_CALL and ON_TOOL_COMPLETE for inline-dispatched tool calls.
The inline branch in execute_tools returns before emit_tool_call_hook and emit_tool_complete_hook. Tool calls on the default inline path therefore send neither event. Hook.ON_TOOL_CALL is documented as "Called before a tool is invoked," so a correctly written subscriber misses these invocations. The gap predates this change.
Retain work-item approval categories for the final call.
ON_TOOL_CALL can rewrite the live call after the graph binds approval to the displayed call. Clearing exec_ctx.requires_approval_before at this point removes the work-item category before the final dispatch check. A rewritten read-only run_shell call can then resolve as autonomous and run without approval.
Remove only the clearing assignment. The final enforcement path already permits an unchanged call whose fingerprint is in approved_fingerprints.
Scope the pending-removal lookup to deleted files.
For an owner with only live files, SQLite short-circuits at is_deleted = 0 and does not enter the IN subquery. If that owner has a deleted file, SQLite materialises the non-correlated subquery for all unprocessed queue rows, including rows for other owners. A large cleanup backlog can therefore increase the cost of the quota statements for owners with pending deletions.
Use a correlated EXISTS and add an index that supports the lookup:
Suggested fix
- "uploaded_by IS ? AND (is_deleted = 0 OR file_id IN "- "(SELECT file_id FROM file_cleanup_queue WHERE is_processed = 0))"+ "uploaded_by IS ? AND (is_deleted = 0 OR EXISTS ("+ "SELECT 1 FROM file_cleanup_queue "+ "WHERE file_cleanup_queue.file_id = conversation_files.file_id "+ "AND file_cleanup_queue.is_processed = 0))"
+CREATE INDEX idx_cleanup_queue_file_processed+ ON file_cleanup_queue(file_id, is_processed);
Assert each null completion tile, not the page text.
The phase table can provide Not scored independently of the headline completion tiles. Assert the three tile test IDs so this test covers the behaviour described by its title. If the test must model every phase as unscored, also change phase_one in the fixture to use null; the current fixture contains one scored phase.
🧪 Suggested fix
- expect(w.text()).toContain(L.phases.notScored)+ for (const key of ['averageCompletion', 'minCompletion', 'maxCompletion']) {+ expect(byId(w, `slm-validation-stat-${key}`).text()).toContain(L.phases.notScored)+ }
expect(w.text()).not.toContain('NaN')
The route test covers only an empty series. Add a case with one point and assert available is True. This protects the has_trend_history truthiness contract while the current generator emits only empty series.
🧪 Suggested test
with patch.object(vd, "get_dashboard_generator", return_value=gen):
result = await vd.get_trend_data()
assert result["available"] is False
assert result["trends"] == {"maturity_trend": []}
+++@pytest.mark.asyncio+async def test_the_trends_route_reports_history_when_a_series_has_a_point() -> None:+ gen = MagicMock()+ gen._generate_trend_data = AsyncMock(return_value={"maturity_trend": [{"value": 1.0}]})+ with patch.object(vd, "get_dashboard_generator", return_value=gen):+ result = await vd.get_trend_data()+ assert result["available"] is True
Assert the null-state aria-valuetext on the system maturity bar.
The all-unscored test does not check the accessible text that PhaseProgressionIndicator.vue sets on .maturity-bar. Add an assertion for the English translation so a removed binding is detected.
The final-pass test mocks graph._run_llm_iteration_plan, so it cannot detect dispatch in the real graph helper or force_final_answer. Add a focused test with one parsed tool call that invokes the real helper and asserts that _process_tool_calls is not called. Keep the manager-level test because it covers a different seam.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Approved defect fixes with no open thread, oldest first. Must not land ahead of the train carrying the migrations fix (PR #20691). This merge train is built on current
main.What Changed
Why this shape
Under the 100-file limit.
Verification
Model Used
Claude Opus 5.5
🤖 Generated with Claude Code
Summary by CodeRabbit