Skip to content

fix(theme): primary-fill labels read --text-on-primary (#20425) - #21007

Closed
mrveiss wants to merge 4 commits into
mainfrom
issue-20425-text-on-primary
Closed

mrveiss wants to merge 4 commits into
mainfrom
issue-20425-text-on-primary

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Thinking Path

With the overseer toggle on, ChatInput.vue sent the message through the overseer transport and its fallback without the attached file ids, so the file was silently dropped. Only the canonical POST /chats/{id}/message route carries the strict ownership verdict and the attachment resolver, so a turn with server file ids must always take it, and the overseer must never receive ids. The decision lives in one pure function so it is unit-testable. The backend already feeds file text to the model (#20401); what was missing was proof that the text reaches the provider's HTTP body.

What Changed

  • autobot-frontend/src/utils/conversationFileUpload.ts: new usesCanonicalRoute(overseerEnabled, attachmentIds).
  • autobot-frontend/src/components/chat/ChatInput.vue sendMessage: ids computed once; overseer only when there are no ids; both controller calls share one options object that includes attachments.
  • autobot-frontend/src/utils/__tests__/conversationFileUpload.spec.ts: 3 routing cases plus a control.
  • autobot-backend/chat_workflow/attachment_provider_call_20195_test.py: drives graph.prepare_llm then graph._run_llm_iteration with the real file manager and a recording HTTP client; positive test plus 3 controls (other session's file, no strict verdict, no attachments).
  • autobot-backend/testkit/fake_http_client.py: the fake provider connection promoted out of llm_failover_19753_test.py (now two users); that test imports it.
  • changelog/unreleased/20195-attachment-canonical-route.md.

Behaviour change: with the overseer on and files attached, that turn gets a normal chat answer (not an overseer decomposition). This follows the maintainer decision of 2026-10-31 that attachments feed the answer. Turns without files are unchanged.

Verification

  • Backend: pytest -q on the new test, attachment_context_20195_test.py, attachment_access_20195_test.py, llm_failover_19753_test.py, testkit/: 153 passed. repo_tests guards (one_fake_async_session, fixed_sleep_then_call, frontend size/fragmentation, UI-literal, duplicate names): 177 passed. black, isort, flake8 clean.
  • Mutation: stubbing chat_workflow.graph.attachment_prompt makes the positive test fail (fact absent from the posted body). Stubbing chat_workflow.manager.apply_attachments alone does not, because the graph re-resolves the block per call in restore_block; apply_attachments is covered by attachment_context_20195_test.py.
  • Frontend (git-archive scratch copy): vitest conversationFileUpload.spec.ts 22 passed; eslint 0 errors (1 existing warning, not in the changed lines); vue-tsc exit 0.
  • Host AC of bug(chat): a file attached to a chat message never reaches the answer #20195 (answer reflects an attached file after a finished update) is still open.

Risks

Users with the overseer on lose overseer handling for turns that carry files. Rollback: revert this commit.

Model Used

Claude Sonnet 5.5 (claude-sonnet-5-5)

Issue Link

Refs #20195

Single-issue rationale: the change is one route decision for one issue; the host AC keeps #20195 open, so nothing is closed here.

Changelog fragment

  • Added changelog/unreleased/20195-attachment-canonical-route.md

Checklist

  • Code follows AutoBot patterns from CLAUDE.md
  • Tests added or updated
  • Documentation updated if behavior changed (changelog fragment)
  • Pre-commit hooks pass
  • PR targets main
  • No secrets or credentials in the diff

🤖 Generated with Claude Code

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 7, 2026
@mrveiss mrveiss added the phase:M3.1 Design docs, tokens and themes label Nov 7, 2026
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
  • 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.

@mrveiss

mrveiss commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) at 5be541b

Verdict: APPROVE

No blocker or major finding. The detector has positive and negative fixtures (including comment, sibling-rule and border-color negatives), the pinned table is equality-checked against the tree, and the three CSS conversions are correct.

Severity file:line finding suggested fix
minor repo_tests/hardcoded_colour_ratchet_17560_test.py:457 test_no_entry_rose_against_the_base skips when the base has no table. The shrink-only check is therefore unarmed until this lands, and a skip reads as a pass. The equality test still protects the tree in the meantime. Acceptable for the first landing; confirm it is no longer skipped on the next base.
minor repo_tests/_hardcoded_colour_detect.py:340 The detector sees only CSS background/color in <style> blocks and .css files. A Tailwind pair (bg-primary text-white) or an inline style is not caught. Note the scope in the module docstring, or file a follow-up.
nit repo_tests/_hardcoded_colour_baseline.py (WHITE_ON_PRIMARY_LABELS) The one retained entry (views/llc/BacklogView.vue) is a live violation (color: white on a primary fill) kept because another PR holds the file. It is recorded, but needs a tracking issue or PR link in the comment. Add the issue/PR number to the comment so the entry gets deleted.
nit changelog/unreleased/20425-primary-fill-labels-text-on-primary.md No pr: field (other fragments carry one). Add it if the schema requires it.

@mrveiss

mrveiss commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Landed on main via merge train #21051 (merge commit 9acab51); every commit of head 5be541b is in main.

@mrveiss

mrveiss commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Branch audit (zero-change deletion). This PR shows 0 changed files against main (head 61c39ec4aa): every change it carried is already in main. Closing and deleting the branch through this PR; it can be restored with the Restore branch button below.

@mrveiss mrveiss closed this Nov 18, 2026
@mrveiss
mrveiss deleted the issue-20425-text-on-primary branch November 18, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M3.1 Design docs, tokens and themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant