Repository navigation
worker: deep-link /activity review/comment rows to the bot's anchor - #459
Merged
Merged
Conversation
…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
tend-agent
approved these changes
May 13, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In the recent-activity feed,
reviewandcommentrows used to link tothe 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.urlfor thereviewsbucket now resolves to the bot'smost recent review (
…#pullrequestreview-<id>).RecentItem.urlfor thecommentsbucket now resolves to the bot'smost recent issue/PR-conversation comment (
…#issuecomment-<id>).prsandissuesrows are unchanged — those are the things tendcreated.
How
After each Search query returns the recent N items, the Worker issues
one extra REST call per recent item (
/pulls/{n}/reviewsforreviews,/issues/{n}/commentsforcomments), picks the latest entry authoredby the originating bot, and uses its
html_url. Failures (404, no botmatch, transient error) silently fall back to the parent's
html_urlsoa 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
waitUntilrefresh, never on viewer time.
The bot is tracked per item during the Search-merge step (each item
carries its
botthroughArray<SearchItem & { bot: string }>) so thefollow-up looks for the right author.
Test plan
cd worker && npm test(19 tests, including new success + fallback paths)cd worker && npm run typecheckcd site && npx astro buildpre-commit run --all-files