Repository navigation
loopway 2.0 slice 5: blocked sessions ask on the subject; reactions and replies answer - #512
Merged
Merged
Conversation
Closed
|
This PR conflicts with its base branch. Rebase onto it, resolve the conflicts, and push. |
…nd replies answer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… call is the same without its description Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcwhittemore
force-pushed
the
v2-slice-5-asks
branch
from
November 11, 2026 03:37
bdaa120 to
62b08d5
Compare
This was referenced Nov 11, 2026
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.
Closes #506. Slice 5 of loopway 2.0: when a session is blocked, it asks on the subject, and your answer there unblocks it. No model decides anything.
What it does
--permission-mode auto, so the classifier decides first. What it would still prompt for goes to a newpermissiontool on loopway's MCP (--permission-prompt-tool). loopway then checks, in order: calls you already approved for this session, the bot'sdeny:list, itsallow:list (Claude Code's pattern syntax,Bash(npm test:*)). If none decides it posts one comment on the thread's main subject (through the same path ascomment, marked) asking for a 👍 or 👎, refuses the call for now with a message saying it has asked, marks the sessionblocked, and recordsasks: [{ id, kind, commentUrl, subject, tool, input, at, answeredAt? }]on the thread.ask(subject, question)tool posts the question (marked) and blocks the session. The ground rules tell sessions to use it when they need someone to decide or are stuck.ghuser, and nobody else, answers: 👍 resumes the session withapproved: <tool> <input>, "Retry it." and remembers the call for that session, 👎 resumes it withdenied. A comment from theghuser on the question's subject after the question answers it and is delivered as a normal update. A blocked session is not run for other updates meanwhile.asked/answeredlines in the log and--json,?? askedlines in the session log, a "Waiting on" section with links in the TUI thread view, andblockedas the session status on the main view.New code is in
asks.ts(rule matching, the comments, reading reactions);mcp.tsgets two tools in their own functions so slice 6 rebases easily.Worth knowing
comment()does not return, andresource(url:)cannot read an issue comment's reactions.descriptionfield, which it rewords on every retry; otherwise a remembered approval would not match the retry.curl, a POST of/etc/hosts, writes outside the project,WebFetchand so on without prompting, so nothing reached thepermissiontool. To force a prompt I putpermissions.ask: ["Bash(curl:*)"]in the scratch project's.claude/settings.json. Details in the verification file.Test it locally
packages/cli/test/asks.test.tsis the new file: rule matching and front matter, ask posted once, 👍 and 👎 from the owner, reactions from anyone else ignored, a question answered by a comment, restart with an open ask, the remembered approval, and the whole loop over MCP withtest/fake-claude.mjs.To try it live, follow steps 1 to 7 of #506. The result of doing that is in
verifications/512.md.🤖 Generated with Claude Code