Skip to content

worker: anchor /activity review rows on the latest inline comment - #466

Merged
max-sixty merged 1 commit into
mainfrom
links
May 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
links

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

/activity review rows were linking to #pullrequestreview-<id>, which scrolls to the review's summary block. tend's reviews are almost always COMMENTED with an empty body — so the anchor has nothing to scroll to and clicks land at the top of the PR.

Example: PR #463's tend review — empty body, one inline comment on site/src/components/CurrentlyTending.astro. The link as served was effectively a no-op.

Switch the reviews bucket to /pulls/{n}/comments (inline PR review comments) and pick the bot's latest by created_at. The resulting #discussion_r… anchor lands on the actual comment thread.

Body-only reviews (no inline comments) now fall back to the parent PR URL rather than the review anchor; in practice tend rarely posts those, and the parent URL is the same fallback already used on lookup failure.

Test plan

  • npm test in worker/ — 19 tests pass, including updated refreshActivity assertions
  • Verified against PR site: live tending timer, merge in-flight runs into activity feed #463 via gh api: the bot's latest inline comment is #discussion_r3237865298, which the new code will pick
  • After deploy, confirm /activity rows in the review bucket point at #discussion_r… (≤5 min cache refresh after first request)

`#pullrequestreview-<id>` scrolls to the review summary block — the text
the reviewer wrote in the top-of-page comment box. tend's reviews are
typically `COMMENTED` with `body: ""`, so the anchor has nothing to scroll
to and clicks land at the top of the PR.

Switch the reviews bucket to `/pulls/{n}/comments` (inline PR review
comments) and pick the bot's latest by `created_at`. The resulting
`#discussion_r…` anchor lands on the actual comment thread.

Body-only reviews (no inline comments) now fall back to the parent PR URL
rather than the review anchor; in practice tend rarely posts those, and
the parent URL is the same fallback used on lookup failure.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit b6c2d5e into main May 14, 2026
6 checks passed
@max-sixty
max-sixty deleted the links branch May 14, 2026 01:56
@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