Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

A session's page shows what you asked, not what Claude Code injected; highlights leave out acknowledgements #364

Mergedsyntaqx merged 363-session-prompt-noise into main
syntaqxopened this pull request

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.
  • 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 intentTitle and the work service's provisional title (drop_leading_context in 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
syntaqxturned on auto-merge (merge commit)·
syntaqxmerged this·
syntaqxdeleted the 363-session-prompt-noise branch·

All checks have passed

2 passed · on e30f733

Workflows

CI / pull_request — CI passedDetails
Dependency review — No dependency changesDetails

363-session-prompt-noise was deleted

It can be made again at e30f733, where it was.

Sign in to comment.