Repository navigation
fix(app): remove Today/This week chat scope chips - #12510
Merged
Git-on-my-level merged 2 commits intoSep 1, 2026
Merged
Git-on-my-level merged 2 commits into
Git-on-my-level merged 2 commits into
Conversation
The always-on BasedHardware#4515 composer chips only preset _chatScope for the next typed Ask: selected vs unselected was nearly the same dark pill, PTT/ voice never sent the scope, and there was no visible Scope label. Strip the timeframe chips from ChatPage; keep the About: {title} chip that clears an active conversation scope (Ask about this) and all initialChatContext / sendMessageStreamToServer context plumbing. _chatScope no longer changes from the composer, so _timeframePreset and _toggleTimeframe are gone and the chip row renders nothing without a conversation scope. chatScopeToday / chatScopeThisWeek are now unreferenced: dropped from app_en.arb + 48 translations and regenerated gen-l10n output. chatScopeAbout and askAboutThisConversation stay (still used). Verification: - dart format --line-length 120 app/lib/pages/chat/page.dart (0 changed) - flutter analyze app/lib/pages/chat/page.dart -> No issues found - bash app/scripts/analyze_ratchet.sh -> passed (improved: 2 ratchets) - flutter gen-l10n -> only chatScope key removals in checked-in output - bash app/test.sh -> 1656 passed, 5 skipped; 1 pre-existing flake (conversation_location_capture_test 'shares one deadline...') fails only under full-suite load, passes in isolation on this tree Failure-Class: none Co-authored-by: multica-agent <[email protected]>
Same BasedHardware#4515 strip as the app side: the Scope row (Today / This week / Clear) only preset a date window on currentContext that the user could not see anywhere else once set. Remove the row, activeTimeframePreset, and applyTimeframePreset; keep currentContext plumbing for conversation/task/memory (Context: {title} header and context on Ask). Nothing else in web sets start_date/end_date anymore, so the header's dead ' · timed' suffix goes too; setContext is no longer used here. Committed with OMI_SKIP_WEB_FORMAT=1: web/app has no package-lock.json (bun.lock only), so the hook's pinned-prettier gate cannot resolve and refuses by design; CI's web-app-checks gate is bun run check. Verification: - bun run lint (oxlint) -> zero findings for ChatPanel.tsx - bun run typecheck (tsc --noEmit) -> clean - bunx vitest run src/components/chat -> 8 files, 30 tests passed Failure-Class: none Co-authored-by: multica-agent <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ChatPage(app/lib/pages/chat/page.dart) and the Scope row (Today / This week / Clear) from the webChatPanel(web/app/src/components/chat/ChatPanel.tsx).chat_scope/PageContextfail-closed retrieval,ChatPageContext+sendMessageStreamToServer(..., context:), conversation-detail Ask about this (initialChatContext), the conversation About: {title} chip that clears an active scope, and the webcurrentContextplumbing (headerContext: {title}+ context on Ask).chatScopeToday/chatScopeThisWeekkeys fromapp_en.arbplus the 48 translations and regenerates the checked-in gen-l10n output.chatScopeAboutandaskAboutThisConversationstay (still referenced).Follow-up to #11206 / #4515: this strips only the timeframe preset UI; #4515's backend hard-scope capability is untouched. Not a revert of #11206.
Why: dogfooding showed the chips look tappable but only preset
_chatScopefor the next typed Ask — selected vs unselected are near-identical dark pills, PTT/voice never sends the scope, and no visible Scope label makes the state discoverable.Verification
Flutter (
app/):dart format --line-length 120 lib/pages/chat/page.dart→ 0 changedflutter analyze lib/pages/chat/page.dart→ No issues foundbash scripts/analyze_ratchet.sh→ passedflutter gen-l10n→ checked-in output changes only drop the two chatScope keysbash test.sh→ 1656 passed, 5 skipped, 1 failed:conversation_location_capture_test"shares one deadline between capture and compatibility upload" fails only under full-suite load on this machine and passes in isolation (flutter test test/unit/conversation_location_capture_test.dart→ 10/10). Timing flake unrelated to this diff (chat page + l10n only).Web (
web/app/):bun run lint→ zero findings for ChatPanel.tsxbun run typecheck→ cleanbunx vitest run src/components/chat→ 8 files / 30 tests passedNo device smoke run; the composer change is verified via analyzer, widget suite, and web tests only.
Failure-Class: none
Closes SCA-396