Skip to content

worker: deep-link /activity review/comment rows to the bot's anchor - #459

Merged
max-sixty merged 6 commits into
mainfrom
activity-deep-links
May 13, 2026
Merged

max-sixty merged 6 commits into
mainfrom
activity-deep-links

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

In the recent-activity feed, review and comment rows used to link to
the parent PR/issue — a bot review on a long thread would drop the
viewer at the top, not on the actual approval/comment. This resolves the
deep URL per row.

  • RecentItem.url for the reviews bucket now resolves to the bot's
    most recent review (…#pullrequestreview-<id>).
  • RecentItem.url for the comments bucket now resolves to the bot's
    most recent issue/PR-conversation comment (…#issuecomment-<id>).
  • prs and issues rows are unchanged — those are the things tend
    created.

How

After each Search query returns the recent N items, the Worker issues
one extra REST call per recent item (/pulls/{n}/reviews for reviews,
/issues/{n}/comments for comments), picks the latest entry authored
by the originating bot, and uses its html_url. Failures (404, no bot
match, transient error) silently fall back to the parent's html_url so
a broken follow-up never drops a row. With RECENT_PER_BUCKET = 10,
that's up to 20 extra REST calls per refresh — under the 5,000/hr cap,
and with SWR landed on #445 they run in the background waitUntil
refresh, never on viewer time.

The bot is tracked per item during the Search-merge step (each item
carries its bot through Array<SearchItem & { bot: string }>) so the
follow-up looks for the right author.

Test plan

  • cd worker && npm test (19 tests, including new success + fallback paths)
  • cd worker && npm run typecheck
  • cd site && npx astro build
  • pre-commit run --all-files

max-sixty and others added 6 commits May 13, 2026 09:42
…g issues

GitHub's commenter: Search qualifier matches PR review submissions
(including body-less approvals), so the comments bucket was rendering
e.g. dependabot-bump approvals as 'comment' rows on the activity feed.

Split /activity into four primitive buckets — prs / issues / reviews
(reviewed-by:<bot>) / comments (commenter: minus -reviewed-by:) — so
reviews tag as reviews. The issues bucket also drops tend's own
outage and tracking issues (tend-outage, review-runs-tracking,
review-reviewers-tracking, nightly-cleanup) so its count reflects
issues filed about the repo, not internal bookkeeping.

Stat strip gains a reviews cell; recent-activity feed picks up a
review kind; CurrentlyTending fallback considers the new bucket.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
For the `reviews` and `comments` buckets, resolve each recent row's `url`
to the bot's specific review (`…#pullrequestreview-<id>`) or comment
(`…#issuecomment-<id>`) so clicking lands on tend's actual action, not
the top of the parent thread. One extra REST call per recent item
(`/pulls/{n}/reviews` or `/issues/{n}/comments`); failures fall back to
the parent `html_url`. `prs`/`issues` are unchanged.

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	worker/README.md
#	worker/src/index.ts
# Conflicts:
#	docs/website-data.md
#	worker/test/worker.test.ts
# Conflicts:
#	docs/website-data.md
@max-sixty max-sixty changed the title worker+site: deep-link /activity review/comment rows to the bot's anchor worker: deep-link /activity review/comment rows to the bot's anchor May 13, 2026
@max-sixty
max-sixty merged commit e1532b4 into main May 13, 2026
6 checks passed
@max-sixty
max-sixty deleted the activity-deep-links branch May 13, 2026 19:12
@max-sixty max-sixty mentioned this pull request May 15, 2026
2 of 6 tasks
max-sixty added a commit that referenced this pull request May 15, 2026
## Summary

Release 0.0.19. Headline change: **Codex harness support alongside
Claude** (#480).

- New `codex/action.yaml` composite action — invokable as
`max-sixty/tend/codex@v1`.
- `harness: claude | codex` field in `.config/tend.yaml` (default
`claude`); the generator picks the matching action ref and secret names
per harness.
- `shared/system-prompt.md` consumed by both actions.
- Codex plugin manifest at
`plugins/tend-ci-runner/.codex-plugin/plugin.json` and marketplace at
`.agents/plugins/marketplace.json`.

Tend's own config stays on `harness: claude` for now — flipping to Codex
is a separate follow-up PR after this release publishes.

Site polish + minor fixes round out the rest (#456, #462–#464,
#468–#472, #475, #476, #478, #481, #457, #459, #466, #482).

## Test plan

- [x] `wt test` passes
- [x] `pre-commit run --all-files` passes
- [ ] CI green on this PR
- [ ] After merge: `uvx [email protected] --help` resolves once PyPI release
workflow completes
- [ ] v1 branch auto-updated by `update-action-branch.yaml`
- [ ] Follow-up PR regenerates tend's own workflows with `uvx
tend@latest init`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
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