Repository navigation
fix(chat): read Today, your agents and their runs, History over a range, and the Signals summary - #2465
Merged
Conversation
…ge, and the Signals summary Chat now reads what Action Center's Today, Agents, History and Signals pages show, from the pages' own functions: - get_today: Today's focus in its cards' order (code, title, why, first step), Since yesterday, Waiting for you, Where you stand, set-up steps left, and Last week on Mondays, with the person's session. - list_my_agents and list_agent_runs: Your agents by tab, and one agent's runs on the brand, as Agents lists them for the person, paged. - get_action_history: History's range, filters and sort, with its summary cards, paged (History's filter is now shared with the page). - get_signals_summary: the Signals page's summary cards over its window. A reader rule says "what to do first" on Today is the first focus card. Chat Help says what Chat reads on these pages. A model eval scenario checks "ilk yapmam gereken ne?" on Today. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
This was referenced Nov 17, 2026
gkhngyk
previously approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Re-approving after the main merge: the PR's own changes are unchanged (numstat matches; the tools.test.ts resolution keeps both sides).
Contributor
|
Approved, but it now conflicts with main after today's merges. Please merge main in and I'll merge it. |
Conflict in web/src/lib/mcp/brand-scope.test.ts: kept both import groups (this branch's today-reads and agent-reads, main's learning, catalog, product-visibility and prompt-locations). approved-articles.json taken from main and regenerated with the help tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Re-approving after the main merge: own changes unchanged; the help-file resolution keeps both sides.
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 17, 2026
Main now holds ansvisor#2465 (fix/chat-today-agents-reads), so it comes in with main rather than on its own. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
Step 6b of "Chat must read everything a page shows". Chat can now read Action Center's Today, the person's agents and their runs, History over any range with its filters, and the Signals summary cards. Each read calls the page's own functions, so Chat and the page show the same things in the same order. On Today, "what should I do first?" now means the first Focus card.
Changes
get_today(new)list_my_agents(new)list_agent_runs(new)get_action_history(changed)get_signals_summary(new)Other changes:
lib/action-center/history.ts(filterHistory). The page and Chat both use it.getActionHistoryandgetSignalsSummaryusedbClient(). The page is unchanged (it still gets the person's client). Chat runs them with the service role after the brand check, as KPIs and Getting started already do.en.json. Chat Help gets one section on these reads (129 words).brand_id,date_from,date_to,status,category,priority,source,search), so fix(chat): read over the page's dates and filters in the side panel #2459's page-filter mapping applies once it lands.Safety
brandAllowed: the caller's organization and brand access). A brand outside it reads nothing (brand-scope.test.tsrows added).get_todayandget_action_historyare untrusted (they carry outside text).list_my_agentsandlist_agent_runsare workspace reads (scanned, not tainting).get_signals_summaryis trusted (counts only).'use server'export added. No migration, no dependency, no lockfile change.signals_summaryfunction.How to test
Checks
npx tsc --noEmit -p .: clean.src/lib/chat,src/lib/mcp,src/components/chat,src/components/action-center, the Action Center and Agents pages' tests,src/lib/action-center,src/lib/help,src/i18n,use-server-exports,subscription-guard-coverage: 378 files, 5309 passed, 1 skipped.today-reads.test.ts(12),agent-reads.test.ts(6, on the page's ownlistAgentsand runs),today-tools.test.ts(9),today-eval.test.ts(3).git merge-tree --write-tree HEAD upstream/main: clean.yarn vitest run -u src/lib/help.Not in this PR
list_action_historytool keeps its closed-only list. Range and filters for MCP are a separate change.Choices made
get_action_historynow includes In progress and On hold by default, as History does. Before, it read only Completed and Dismissed. The MCP toollist_action_historykeeps its closed-only list, so Chat and MCP differ here until MCP gets the same range and filters.Generated by Claude Code