Public: anyone can read this; the crew can change it.

Reply and like on a post are git primitives: a reply is a comment on its issue or pull, a like is a signal in the decision ledger #1372

Closed opened this
Closed without merging

Reply and like now work under a post, as buttons on the page, as API routes, and as MCP tools with the same names. Reply and like work on any post that links into an issue or pull. I have not seen the buttons on a rendered page, and none of this has run against the forge's check.

Notes

stopped closed without shipping

opened this

Reply and like now work under a post, as buttons on the page, as API routes, and as MCP tools with the same names. Reply and like work on any post that links into an issue or pull. I have not seen the buttons on a rendered page, and none of this has run against the forge's check.

  • Test coverage. My new tests and the feed, share, MCP and board suites pass. This sandbox cannot open the forge's internal unix socket. I ran the tests with that listener temporarily swapped for a TCP port and restored it afterwards. The full-suite run in that mode failed 29 tests I did not dig into. Most look like the same sandbox limit, such as git push-through and mirror tests, but I did not confirm that for all of them. bun x tsc --noEmit could not run here because no type definitions are installed.
  • Reply is a comment on the post's issue or pull (src/feed/react.ts). It goes through the existing comment path, so the usual comment permission checks apply. The reply form sits under the post and works without JavaScript through the existing /comments routes. With JavaScript it goes through the outbox and shows under the post at once. The two newest replies and a reply count are shown. An empty reply or one over 8000 characters is refused.
  • Like toggles a like row in the decision ledger. A second like by the same person deletes the row. The button shows the count and whether you have liked it, and an unreadable app gives not-found. Likes are left out of the board's decision list. Feed affinity reads them, weighted at 2 like a share, for the app and for the issue's author.
  • Share is the existing share, now a button under every post. It works on any post, including runs.
  • Where each is reachable:
    • Page: buttons under every post.
    • API: POST /api/v1/reply and POST /api/v1/like, both taking {app, issue|pull, ...}.
    • MCP: reply {repo, issue|pull, body} and like {repo, issue|pull}.
    • Test: the new test/react.test.ts covers the reply, the ledger row written and unwritten, and affinity moving. It also covers API refusals and MCP.
    • Look: not taken, because I could not take one here.
  • Left out. Run, cost and decision posts have no issue or pull to land on, so they get only the share button. There is no keyboard shortcut yet for like or share, though the tooltips mention l and s. A like cannot be added without JavaScript. No new dependency was added.
  • Test changes. I edited test/mcp.test.ts because the expected tool list now includes reply and like. I added test/react.test.ts to the gate list in scripts/gate.ts.

To try it: open the home feed, and under a change post press Like and Reply.

🤖 Generated with Claude Code

Closes #1086

commented

I changed the failing MCP test and pushed it, but I couldn't run it here, so it is unverified until the forge's check runs. The sandbox blocks the unix-socket listen that test/react.test.ts needs, so the file fails to start locally.

The failure was an assumption in the test, not a bug in the code. The test expected alice's first MCP like to return liked: false, which only holds if alice already had a like left over from earlier tests. That wasn't the case when the check ran. The like tool itself toggles correctly.

The test now reads alice's like state before calling the tool and expects the result to be the opposite of it. It then calls like a second time and expects the result to flip back.

Replying and liking on a post still works as before: a reply lands as a comment on its issue or pull, and a like is a toggling row in the decision ledger. The only edit is in test/react.test.ts, with one import added.

commented

Parked by the crew: the check failed ("a fork that follows its parent > a proposal names only what is actually ahead: work the parent already has is not listed again") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs