Skip to content

fix(content): move the agent's waiting page while it works - #1523

Merged
gkhngyk merged 43 commits into
ansvisor:mainfrom
cihan-gyk:fix/agent-wait-motion
Oct 26, 2026
Merged

gkhngyk merged 43 commits into
ansvisor:mainfrom
cihan-gyk:fix/agent-wait-motion

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #1522. The PR's own changes are its commits after #1522's branch.

In the live editor test (2026-10-25), nothing moved on the Content Agent's waiting page while it rewrote the page, except the timer. It read as stuck ("daha agentic … daha hareketli"). The page now moves while the agent works (CE-026's motion, on the waiting page). It uses the agent card's motion and its rules: subtle, never a rotating ring, and still with reduced motion.

  • The agent's tile: the card's working tile (AgentTile, exported) replaces the static robot. It breathes, a light sweeps over it, its eyes look around and its spark blinks.

  • The step under way: its chip gets a faint sweep (StepSweep) and the agent's dots (RunSteps moving). The fixed list shown before the run's first step reads gets the same sweep on its writing row. Only the waiting page passes moving. The card and Next step already show dots after their titles.

  • What it does now: one line at a time, every 4 s, under the steps, beside the clock. The lines are what the agent's prompt asks of it (content-writer.js, content-rewrite.js), with the counts its run read. For a rewrite:

    • "Keeping to 14 rules"
    • "Keeping the page near its target length"
    • "Keeping quoted passages, tables and images"
    • "Keeping the page's facts and voice"
    • "Drawing on 12 sources"
    • "Adding a [placeholder] for facts it lacks"

    New pages and live pages have their own lines. A count the run read none of (0 rules, 0 sources) isn't said, as its chip isn't shown. The lines are short enough for one line at the card's width. The line is derived from the seconds that already drive the clock, so it needs no new timer. It is hidden from screen readers like the clock, so the status isn't read out every few seconds.

  • The page drawn in: a faint page sketch under it, whose lines are drawn in one after another and start again (agent-fill, a new keyframe beside the card's). With reduced motion it stands whole and still.

Related issue

Editor test findings 2026-10-25 (group F).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open a draft and run Rewrite page (or start a new page with the Content Agent).
  2. On the waiting page:
    • the tile breathes;
    • the current step's chip has a passing light and dots;
    • the line under the steps changes every few seconds;
    • the sketch below fills in line by line.
  3. Turn on Reduce motion (macOS: System Settings › Accessibility › Display). Nothing moves, and the sketch stands whole.
  4. Check it in the dark theme too.

Checked in the browser at 1024 px, light and dark, on a demo draft set to "writing" with a run row for a moment (both restored after).

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): 0 errors; the 6 warnings are in files this PR doesn't touch
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Web: yarn test and yarn build. A pre-push review ran; its findings are the last commit.

🤖 Generated with Claude Code

cihan-gyk and others added 26 commits October 25, 2026 21:35
…adings' answers and what the last rewrite came to, and offer a Length it can reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… for, keep its numbers on the row (00285), and read the floor's sections closer (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and count the last rewrite only within its Length's band and the same kept text (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er to rewrite the cited passages too when they hold the Length out of reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e back, release an unused hold, keep a cited-too miss as evidence, and offer it only when cited passages hold the Length (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he agent and Next step move on, and count open rules as the Rules tab does

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es read the page, keep the Length's own words, and wait for the passages before dropping skips (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion, not the next step, and say how many placeholders it leaves to fill

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aphs, and read a rewrite's once, not on every key (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y why a run left nothing, and show a failed last run on the card

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… id and kind, not by clocks, and clear a failed last run once another starts (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e rules before they're accepted, and say which rule met now one would break

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age as it is now, and count a rewrite's Length as its own line reads it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wasn't given or drops a name a passage has

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…give claims only to sources the page or its input names, and put a rewrite's as a placeholder (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…editor shows them, and hold the rules chip until its count stands

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aracters as the toolbar counts them, and the run's rule count

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…for the brief and catalog before the rules' count, hold the panel's counts with it, and read the shown rewrite's Length by the editor's count (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s open suggestions for the page before, and drop a batch's card once the page no longer has it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e left open never holds the next run out of sight

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…estions when they can't be set aside, and hold History while the agent works or a decision saves (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a sweep on the step under way, a line on what it does, and the page drawn in

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, true without an outline, and silent on rules or sources read none of; even step spacing; steadier tests (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 25, 2026

@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.

Looks good.

What I checked:

  • Stack. The PR's own change is two commits on #1522's head (3f50c86): c511970 and 9bb59a1. There are no merge commits, and it merges cleanly with its stack. It's web only, with no migration of its own.

  • Reduced motion. Every new moving part has a motion-reduce: class:

    • the tile's breathing and sweep;
    • the chip's StepSweep and its dots;
    • the line's animate-in;
    • the sketch's animate-agent-fill.

    With animate-none, the keyframes' both fill no longer applies, so the sketch stands whole. There's no rotating ring (animate-spin). The test checks every animate-agent* and animate-in element.

  • Screen readers. The line on what the agent does is aria-hidden inside the role="status" region, as the clock is. The dots and the sweep are aria-hidden too, so the status isn't read out every 4 s.

  • The lines match the prompts:

    • a new page: Answer first, the outline, placeholders (WRITE_SYSTEM_PROMPT);
    • a live page: questions it misses, LOCKED passages (SUGGEST_SYSTEM_PROMPT);
    • a rewrite: the Length, which with Length off is the page's own length, kept blocks, facts and voice (REWRITE_SYSTEM_PROMPT).
  • The counts. They come from the run's read_rules and gather_sources steps.

    • A count of 0 is dropped, as its chip is.
    • With no count yet (no run, or the fixed list), the line says "the rules" or "your sources".
    • A page's lines never run out, since three of them carry no count.
    • The line rotates on the seconds the clock already uses, so no new timer is added.
  • The card. RunSteps moves only with moving (default false), so the card and Next step are unchanged. AgentTile is the ink tile, so no new colour comes in.

  • Strings are in en.json under agentWriting.doing.

  • Before the API deploy. It's web only and reads only the run rows the API already writes. Nothing changes with an older API.

No findings.

…ead "per" only as an attribution, "claims" and "states" only before "that", and "göre" not as a comparison; keep a change that keeps every name worded or cased another way, or as bullets; know a source by its possessive, never its last word alone; let the prompts name Your input as a source (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged the PR below it forward (5588e42), which brings in main now that #1514–#1519 are in. No conflicts; its diff against main is its own files again.

Checks after the merge:

@github-actions github-actions Bot removed the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 26, 2026

@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.

Looks good.

The new head, 5588e42, only merges #1522's new head (f8ecc22), and through it main. Re-merging its parents (80cb3e4 and f8ecc22) is clean and gives the commit's tree (5a0c0628), so the merge hides nothing. Its own change against #1522 is the same as in round 31, line for line. With its stack, it merges cleanly on main. The verdict stands.

@gkhngyk
gkhngyk merged commit f542b94 into ansvisor:main Oct 26, 2026
4 of 5 checks passed
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.

2 participants