Skip to content

fix(chat): no row counts in Chat's steps, Data used or exports - #2446

Merged
gkhngyk merged 3 commits into
ansvisor:mainfrom
cihan-gyk:fix/chat-steps-no-row-counts
Nov 16, 2026
Merged

gkhngyk merged 3 commits into
ansvisor:mainfrom
cihan-gyk:fix/chat-steps-no-row-counts

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The owner asked that people never see row counts in Chat, above all "0 rows". A recent answer's steps read "Read Action Center · 50 rows", "· 0 rows", "Read Action History · 0 rows", and Chat looked broken.

Now Chat says what a read covered (its period and platforms) and never how many rows it read. The app and the model still count rows as before.

Changes

  • Step words (engine.ts, scopeDetail): a read step's detail is its period and platforms only, e.g. "Read Citations · Last 30 days · ChatGPT". A read that found nothing is a normal step with no "0".
  • Check chips, Data used, one-step header (run-answer.tsx, run-view.ts, agentic/run-steps.tsx): no row count. Memory's saved notes ("Memory · 3 items") and a run's parts still show their count.
  • Older chats (steps.ts, toClientStep): a stored read step whose words end with its own row count loses it on the way to the browser. Chats from before this change show no count either. Other words are not touched.
  • Kept as before: the step's row_count, the run's sources count, the row cap and data budget, and the note the model gets with each read.
  • Exports and downloads: they are built from the answer's text only and never added a count. Their tests no longer use "42 rows" as sample text, and a new test checks that no count is added.
  • Demo brand (server/src/lib/demo/chat.js, agents.js): its read steps use the same words. DEMO_VERSION goes to 11, so each demo brand is rebuilt on its next visit.
  • Copy: removed chatEngine.rows and agentic.runSteps.rows from en.json, since nothing uses them now.
  • Help (help/chat/chat.md): "Data used names each source it read, with its rows" is now "Data used names each source it read and each page it opened". A step's detail is described as the period and platforms a read covered.
  • Checked with no change needed: Activity (it logs changes, not reads), Inbox and All chats (step labels only), agent run pages (they show the run in Chat), and Slack and e-mail (only an approval step's title and target).

How to test

  1. Ask Chat something that reads a few sources, e.g. "What are my most important actions?".
  2. While it works and after it ends, check the step list, the check chips, a chip's detail and Data used. Each shows the period and platforms, with no "rows" and no "0".
  3. Ask about a period with no data. The read shows as a normal done step, with no count.
  4. Open a chat from before this change. Its steps show no row counts either.
  5. Ask something that uses memory. "Memory · N items" still shows.
  6. Download the answer as Markdown or Word. The file has the answer's text only.

Checks

  • npx tsc --noEmit -p .: passes.
  • Vitest, src/lib/chat, src/components/chat, src/components/agentic, src/lib/help, src/i18n and use-server-exports: 257 files, 3718 passed, 1 skipped.
  • Vitest, chat preview page and page access: 36 passed.
  • Server Vitest, src/lib/demo: 18 files, 179 passed.
  • ESLint and Prettier on the changed files: clean. The only warnings are two that were already in engine.test.ts.
  • Help regenerated with yarn vitest run -u src/lib/help. The "Watch the work" section has 124 words.
  • New tests:
    • A read of 0 rows and one of 50 rows: their steps and events show no count, and the model still gets its note and rows.
    • Chips, Data used and the one-step header show no count. Memory's items still show.
    • Older stored steps lose their count, and other words are kept.
    • The export adds no count.
    • The demo's steps and its waiting run's replayed steps have no count.
  • Merge check against fix(chat): read every open action by priority, say how many, and name actions by title #2420 and feat(action-center): number each brand's actions from AC-1 #2422: the only conflict in each is the generated web/src/lib/help/approved-articles.json, because the same "Watch the work" section changes. help/chat/chat.md merges cleanly, and the merged section has 131 or 147 words. Whichever lands second: merge and run yarn vitest run -u src/lib/help again. I'll do that on this branch if fix(chat): read every open action by priority, say how many, and name actions by title #2420 lands first.

Generated by Claude Code

A read step said how many rows it read ("Read Action Center · 0 rows"),
and so did its check chip, Data used and a one-step run's header. People
read "0 rows" as Chat being broken. Now:

- A read step's words are its period and platforms only
  ("Last 30 days · ChatGPT"), whatever it read, 0 rows or 50.
- The check chips, Data used and a one-step run's header never show a
  read's rows. Memory's saved notes ("Memory · 3 items") and a run's
  parts are still counted.
- An older step that kept its count in its words loses it on the way
  to the browser (toClientStep), so chats from before show none either.
- The count is still kept: the step's row_count, the run's sources and
  what the model reads are as they were.
- en.json's chatEngine.rows and agentic.runSteps.rows go: nothing uses
  them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Chat no longer shows how many rows a read read. Data used names each
source and page; a step's detail says the period and platforms a read
covered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
The demo brand's chats and agent runs worded their read steps as the
engine did ("Last 7 days · ChatGPT, … · 216 rows"). They now say the
period and platforms only, and keep the count in row_count. DEMO_VERSION
goes to 11, so each demo brand is rebuilt with the new words on its next
visit, its waiting run's replayed steps included.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gkhngyk
gkhngyk merged commit 0167803 into ansvisor:main Nov 16, 2026
13 checks passed
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 16, 2026
Brings in ansvisor#2446 (no row counts), ansvisor#2442, ansvisor#2447, ansvisor#2441 and ansvisor#2377.

Conflicts:
- approved-articles.json: regenerated (yarn vitest run -u src/lib/help).

help/chat/chat.md merged cleanly: main's "Watch the work" text (no row
counts) and this branch's action-title line are both kept (132 words);
updated stays 2026-11-16, last_checked 2026-11-15.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 16, 2026
Takes the updated ansvisor#2420, which now includes upstream main (ansvisor#2446 no row
counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377).

Conflicts:
- approved-articles.json: regenerated (yarn vitest run -u src/lib/help).

help/chat/chat.md merged cleanly: updated 2026-11-16, last_checked
2026-11-15.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 16, 2026
Takes the updated ansvisor#2422, which now includes ansvisor#2420 and upstream main
(ansvisor#2446 no row counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377). No conflicts;
approved-articles.json checked with yarn vitest run -u src/lib/help
(no change).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 16, 2026
Takes the updated ansvisor#2423, which now includes ansvisor#2422, ansvisor#2420 and upstream
main (ansvisor#2446 no row counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377).

Conflicts:
- help/chat/chat.md: front matter only; took the later last_checked
  (2026-11-16). Both sides' text is kept: main's "Watch the work" (no
  row counts, 148 words) and this branch's look-up-by-code paragraph in
  "Ask about your actions" (146 words).
- approved-articles.json: regenerated (yarn vitest run -u src/lib/help).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 16, 2026
Brings in ansvisor#2446 (no row counts), ansvisor#2442, ansvisor#2447, ansvisor#2441 and ansvisor#2377.

Conflicts:
- help/chat/chat.md: front matter only; took the later last_checked
  (2026-11-16), updated stays 2026-11-16. Both sides' sections are kept:
  main's "Watch the work" (no row counts) and this branch's "Open and
  close Settings in the chat menu" (98 words).

approved-articles.json merged cleanly and is current (yarn vitest run -u
src/lib/help: no change).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants