Skip to content

Keep the invite address on a request someone is on - #62

Merged
rachmo merged 1 commit into
mainfrom
claude/invite-address-on-ack
Sep 30, 2026
Merged

rachmo merged 1 commit into
mainfrom
claude/invite-address-on-ack

Conversation

@rachmo

@rachmo rachmo commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #60.

The bug. A Slack invite request in the onboarding channel shows "Address to invite: …" only while the request is open. I'm on it acknowledges it and redraws the message, so the address vanished at the moment the person who took the job needed it.

The fix (src/slack/alerts.ts, findingBlocks): show the address line until the request is resolved, which is what the hourly onboarding run does once the person appears in Slack. As the issue asks:

  • still never in the summary — /hawkmod findings and the morning report print summaries wherever they run;
  • still gone once resolved;
  • nothing else about the message changes; an acknowledged request keeps no buttons.

Only onboarding_slack_invite carries the line (inviteAddressLine returns null for every other kind).

Existing messages already acknowledged are not redrawn by this; they change only when the run next redraws or closes them. The address is on the lifecycle sheet meanwhile, so nothing needs backfilling.

Tests. test/onboardingRequests.test.ts: the address test is renamed to the new rule and now checks an acknowledged request keeps the address beside "Acknowledged … is on it.", the summary never carries it, and a resolved one drops it. It fails on main without the fix. npm run typecheck && npm test && npm run format:check pass (842 tests). Independent of #61.

🤖 Generated with Claude Code

A Slack invite request showed "Address to invite: …" only while open.
"I'm on it" acknowledges the request, which redrew it without the address,
so the person who had just taken the job lost the address they needed.

The address line now stays until the request is resolved, which is what
the hourly run does once the person is in Slack. It is still never in the
summary, which /hawkmod findings and the morning report print.

Fixes #60.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rachmo
rachmo merged commit c247a40 into main Sep 30, 2026
1 check 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.

Slack invite request loses its address when someone clicks "I'm on it"

2 participants