Closes #363.
A Claude Code session's page showed, as what it was asked, the <browser_instruction> block Claude Code puts ahead of the prompt. Its Highlights were full of "Coordination updates upd_…: …" notes, which g1t session acknowledge writes each time a session takes in an update.
What changes
askedText(lib/coordination.ts) drops every leading block a harness or an editor puts ahead of a prompt, such as<browser_instruction>,<system-reminder>and<ide_…>.- A block counts when its tag name has an underscore or a hyphen. A tag someone types, such as
<div>, has neither, so it stays.
- A block counts when its tag name has an underscore or a hyphen. A tag someone types, such as
- What it was asked: the session page takes the first prompt that still has words after that, and shows them without the blocks.
- Titles drop the same blocks, both the web's
intentTitleand the work service's provisional title (drop_leading_contextin titles.rs). - Highlights leave out acknowledgement notes (
isAcknowledgement).
Checks
- Web typecheck
- Web lib tests (1206, with new cases for the injected blocks, a typed tag, and acknowledgements)
- The work service's title tests (15)
- prettier
- No new rustfmt drift