Skip to content

The promo throttle marker is written on an Antigravity session start whose stdout is discarded, burning the whole cooldown window on a promo nobody saw #596

Closed

Description

@fdaviddpt

Found by the release audit of v0.28.0..HEAD before tagging v0.29.0. Ranked misreports — can ship behind a filed issue, so it did not block the tag.

What is wrong

scripts/session-start-hook.sh:1621-1660 writes the throttle/rotation marker $HOME/.remember/tmp/promo-notice immediately after printf '%s\n' "$_REMEMBER_PROMO_JSON" succeeds. Its own comment states the invariant:

Commit the throttle/rotation marker ONLY now, after the promo has actually reached stdout.

But scripts/agy-session-start-hook.sh:106 delegates with stdout discarded:

printf '%s' "$_NORMALIZED" | bash "$_SCRIPT_DIR/session-start-hook.sh" >/dev/null

printf to /dev/null succeeds, so the marker is written even though nothing was delivered.

Why it costs more than one session

The marker is machine-global by design — ${HOME}/.remember/tmp, deliberately not under REMEMBER_DIR, and the code says so. So one Antigravity session start burns the whole cooldowns.promo_seconds window (default 7 days) for every Claude Code session on that machine.

This is the exact failure mode the #574 review moved the marker write to prevent. That move closed the jq / buffer-failure route; it does not close this one, because here the write genuinely succeeded and the sink was /dev/null.

Why neither diff contains it

agy-session-start-hook.sh:106 shipped in a previous release (#563) and is untouched by this delta. The promo is new in be92024. It is only the composition that misreports.

What would settle it

Whether an Antigravity install is expected to share $HOME with a Claude Code install. The delta's own docs/install-antigravity.md treats that as the normal case.

Suggested shape

The delegating host knows its stdout is discarded and the emitting script does not. Either suppress the promo on that path before it is composed, or have the emit block refuse to commit the marker when it cannot establish that stdout is a real sink — and make "could not establish" suppress the marker rather than write it.

[AI-generated]

Activity

  1. added
    bug
    priority:medium
    filed-by-loop
    on Sep 6, 2026
  2. self-assigned this
    on Sep 6, 2026
  3. added
    cohort-7
    lane-hosts
    on Sep 6, 2026
  4. added 2 commits that reference this issue on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcohort-7filed-by-looplane-hostspriority:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions