Skip to content

fix(chat): show native Grok and Antigravity activity - #816

Merged
devswha merged 7 commits into
devswha:mainfrom
infowolfe:fix/grok-native-activity
Oct 11, 2026
Merged

devswha merged 7 commits into
devswha:mainfrom
infowolfe:fix/grok-native-activity

Conversation

@infowolfe

@infowolfe infowolfe commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Change

Supplemental fix for Grok (#777) and Antigravity (#789). Both agents can write native activity while Herdr reports ready or done, leaving Chat looking idle and keeping tool rows folded. Chat now shows native turn activity and opens live tool rows independently of that pane status. Missing native history gets an explicit notice for either agent.

Grok shows Thinking from thought events and Working from prompts, messages and tools, clearing on native turn completion. Antigravity shows Working from the current prompt/tool sequence and clears on a completed tool-free planner answer. Its individual DONE steps are not mistaken for turn completion; saved reasoning is not presented as live thinking. Late tool results do not restart completed activity. The Agy boundaries follow the captured native 1.3.3 sequence, without interpreting numeric database statuses or decoding payloads.

The shared activity field controls display only. Input delivery, queue authority, supported builds, process/session binding and Hako's helper removal remain unchanged. Interrupted or errored turns without a saved completion can retain the indicator until another native turn or rewind; Agy completion patterns other than a tool-free planner answer have the same limitation. See Grok limits and Agy limits.

Validation

  • bun run check fast on fa05ac7: passed workflow syntax, generated types, application/tooling typecheck, build and 2,695 unit tests (8 skips, 0 failures).

  • Isolated Grok and Agy conversation API contracts: 2 passed, covering activity transitions and HTTP validators alongside existing session/history/output-reference checks.

  • Built-client desktop/mobile checks for both agents: passed, including activity while Herdr never reports working, live tool rows, completion and unavailable-history notices. Agy also covers late tool results and a database-only rewind.

  • Agy unit cases follow the native prompt/context/planner-call/tool-result/final-answer sequence, plus partial records, unfinished answers, database/export lag, rewind and cold-cache replay. The new browser script is included in the CI lane.

  • The combined API/browser run verified unchanged source; the subsequent commit adds only the screenshot to that tested source. Full integration/browser lanes and native Windows checks were not run.

Mobile screenshots from isolated test sessions with fictional messages:

Grok mobile activity

Antigravity mobile activity

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4eb10d31-d9d2-43c2-a4a5-e36ba4091ede

📥 Commits

Reviewing files that changed from the base of the PR and between 10373bb and dd46727.


📒 Files selected for processing (21)
  • CHANGELOG.md
  • docs/agy-chat.md
  • docs/grok-chat.md
  • scripts/agy-chat-browser-qa.ts
  • scripts/ci-browser.sh
  • scripts/ci-browser.test.ts
  • scripts/grok-chat-browser-qa.ts
  • server/agy.ts
  • server/api.contract.test.ts
  • server/conversation.test.ts
  • server/conversation.ts
  • server/grok.test.ts
  • server/grok.ts
  • shared/protocol.ts
  • site/demo/transport.ts
  • src/components/ChatView.css
  • src/components/ChatView.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.zh.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3bd678bf-904d-44b8-8d9f-265eb5e815f3


📥 Commits

Reviewing files that changed from the base of the PR and between fa05ac7 and 10373bb.



⛔ Files ignored due to path filters (2)
  • docs/agy-mobile-activity.png is excluded by !**/*.png
  • docs/grok-mobile-activity.png is excluded by !**/*.png


📒 Files selected for processing (4)
  • CHANGELOG.md
  • scripts/ci-browser.test.ts
  • src/components/ChatView.css
  • src/lib/i18n.tr.ts


🚧 Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • src/components/ChatView.css


Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.




📝 Summary

Summary by CodeRabbit

  • New Features
    • Grok and Antigravity Chat now show native turn activity, including “Thinking…” and “Working…” indicators and live tool activity, even when pane status reports ready or done.
    • Chat now explains when native conversation history is unavailable.
  • Bug Fixes
    • Activity indicators now clear when a turn completes, stay cleared when late background tool results arrive, and reflect the current turn after a rewind.
📝 Summary

Walkthrough

Grok transcript events and Antigravity steps now provide activity states through conversation responses. Chat displays native turn activity and unavailable-history notices. Browser checks cover activity, completion, rewind behavior, and desktop and mobile layouts.

Changes

Native Chat activity

Layer / File(s) Summary
Project activity into conversation responses
shared/protocol.ts, server/grok.ts, server/agy.ts, server/conversation.ts, server/api.contract.test.ts, server/grok.test.ts, server/conversation.test.ts, site/demo/transport.ts
Conversation responses can include native activity. Grok events and Antigravity steps update projected activity, which the conversation routes return. Tests cover activity transitions, completion, late results, and rewind behavior.
Display native activity and unavailable history
src/components/ChatView.tsx, src/components/ChatView.css, src/lib/i18n.*.ts, docs/grok-chat.md, docs/agy-chat.md, CHANGELOG.md
Chat derives display status from conversation activity and shows activity or unavailable-history notices. Styling and translations support the display. Documentation describes the activity rules and limitations.
Verify activity in browser flows
scripts/grok-chat-browser-qa.ts, scripts/agy-chat-browser-qa.ts, scripts/ci-browser.sh, scripts/ci-browser.test.ts
Browser checks cover native activity, live tool rows, completion, late results, rewind behavior, viewport placement, and unavailable-history notices. The CI browser lane runs the Antigravity check.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Suggested reviewers: devswha



Merge Risk: ⚪ Minimal · up to 10373

Grok and Antigravity activity reaches Chat, and the CI browser lane includes the Agy check. No material merge risk is established; the change appears mergeable subject to normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 17 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: displaying native activity for Grok and Antigravity chat.
Description check Passed The description includes both required sections. It explains the problem, resulting behavior, limitations, and validation results, including contract-test coverage for the API changes.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.


Full details: Docstring Coverage

Explanation

Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 17 files. (2 skipped: 2 unsupported.)




✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR



  • 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

Comment @coderabbitai help to get the list of available commands.

@infowolfe infowolfe changed the title fix(chat): show Grok native activity independently of pane status fix(chat): show native Grok and Antigravity activity Oct 11, 2026
@devswha

devswha commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Pushed one commit on top (and merged main) before merging this:

  • One "Working…" at a time. The new activity line also appeared for every other agent, under a work block whose head already says "Working…" (Claude, Codex, …), and under Grok's and Agy's own open work block too. It now shows only where no open work block says it: before the native turn has an assistant or tool row, and while it thinks ("Thinking…"). It is drawn only when the server sends activity, so chats of other agents are as they were, including their empty state while working.
  • The two browser scripts assert that: once a tool row opens the work block, its head says "Working…" and the line under it is gone.
  • The changelog entry links this PR with your credit.
  • docs/grok-mobile-activity.png and docs/agy-mobile-activity.png are removed: nothing in the docs referenced them, and they showed the doubled line. The images in the description point at them, so those will stop loading.

The Grok and Agy scripts are Linux-only, so they were not run on the maintainer's Mac; CI runs them.

@devswha
devswha merged commit 3291eb4 into devswha:main Oct 11, 2026
17 checks passed
devswha added a commit to sobir-git/herdr-web-ui that referenced this pull request Oct 11, 2026
… spots

main added another browser script (devswha#816), so the lane count is 36.

This change's entries sat where every other change adds its own: the top of
the three dictionaries and the end of the changelog lists. Each new commit on
main therefore conflicted. The dictionary entries now sit with the other
machine strings, and the changelog entries one place up from the end.
devswha added a commit that referenced this pull request Oct 11, 2026
## Change

Release 0.4.7, from main at 80ca9bb (47 PRs since v0.4.6).

- `package.json` and `herdr-plugin.toml`: 0.4.7.
- CHANGELOG: `[Unreleased]` becomes `[0.4.7] - 2026-10-12`, with the
compare links.
- #513's entry moves out of the 0.4.0 section, where its branch's merge
left it, and gets its credit; it says the pace is a setting, off by
default (#834).
- A Maintenance section covers the PRs that had no entry: #743, #756,
#767, #795, #805, #810, #813, #821, #826, #831.
- The note under the Hermes entry that asked for a runtime bump at
release now says what a remote PC needs.
- `release-summaries.json`: 0.4.7 in en/ko/ja/zh/tr (6 new, 6 improved,
5 fixed). The Turkish lines are not checked by a native speaker.
- `REMOTE_BUNDLE_VERSION` 25 -> 26. Since v0.4.5's runtime the bridge
gained Hermes transcripts (#604), conversation pushes (#689) and
Grok/Antigravity activity (#816), so `remote-v26` is published before
the app release.

Not in this release: #606.

## Validation

- `bun scripts/release-notes.ts 0.4.7` renders the summaries and the
full changelog (235 lines).
- `bun run typecheck` and `bun run build`: pass.
- `TMPDIR=/tmp bun run test:unit`: one failure, `server/voice.test.ts`
("audio.webm" vs "clip.webm"), which fails the same way on unmodified
`main` on this Mac (Bun 1.4.0); CI runs Bun 1.4.2.
- Every PR merged since v0.4.6 was checked against the changelog
section: all 47 are linked.

## Release

After this merges and its CI on `main` passes: push `remote-v26`, wait
for its release, then run the Release workflow with `0.4.7`.
devswha added a commit that referenced this pull request Nov 5, 2026
…sion (#3076)

## Summary

When Chat falls back to terminal output for a single Copilot process on
Linux that was started without `--ui-server`, Chat now shows a notice:

> Copilot chat is unavailable. On Linux, starting Copilot with copilot
--ui-server --port=0 may help. Its local API has no authentication: any
program on this PC can control that session.

This respects the earlier decision in #2666. Ovis still never adds the
flag and has no toggle for it. The notice only names the option and its
risk where the problem shows, as `docs/copilot-chat.md` already leaves
the choice to the user. The wording says "may" because some failures,
such as an unproved store, an unreadable transcript or a peer claiming
the session, could persist with the flag. We still want to point users
to the more stable route whenever Chat cannot bind the session.

## How

- `shared/protocol.ts`: a new optional field,
`ConversationResponse.hint?: "copilot_ui_server"`. This is an HTTP
contract addition. Older clients ignore it.
- `server/conversation.ts`: in `copilotTranscriptPath`, once Copilot's
own API check returns `not_opted_in` for the one foreground process,
every later `ConversationUnavailable` carries the hint
(`report_invalid`, a report peer conflict, and the final throw). It is
never sent:
  - when the flag is present (the API path and `copilot_api_*` errors),
  - for a two-process `--resume` handoff,
  - on non-Linux or when the process set is unproved,
  - for a first-turn `ConversationNotStarted`.
- `server/pane-routes.ts`: passes `hint` on the scrollback answer, next
to `recovery`.
- `src/components/ChatView.tsx`: an inline footer notice for `copilot` +
`scrollback` + the hint. It follows the existing Grok and Antigravity
notices (#816) for design precedent. Translations for ja/ko/zh are
included. A waiting recovery that keeps the shown history doesn't show
it.
- Docs and a changelog fragment.

## Validation

- `bun run check fast`: workflow syntax, generated types/themes,
typecheck and build all ok. Unit tests passed except
`scripts/build-cache.test.ts`, `scripts/self-hosted-runner.test.ts`,
`scripts/ci-runner-route.test.ts` and `scripts/relay-ios-sim.test.ts`.
These four fail identically on clean `main` in my environment and are
unrelated.
- `bun run check run bun test --timeout 15000
./server/copilot.contract.test.ts`: 8 pass. The no-flag case asserts the
hint. The `--ui-server` fixture's API rejection, race and peer cases
strictly assert no hint, as does the two-process handoff peer conflict.
- `server/copilot.test.ts`: a new test checks that a held marker with no
report, then with a peer claim, then with a peer-conflicting report all
carry the hint.
- `server/pane-routes.test.ts`: the hint passes through next to
`recovery: "waiting"`.
- Independent code-review agent rounds; their findings are fixed.

---------

Co-authored-by: Yu Xie <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Hako <[email protected]>
Copilot-Session: 03511a3a-c861-4657-b123-934fa3dbd976
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