Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open. Current main and v2026.6.11 still have the slash-only fallback hook path, and this PR is the canonical open fix for custom reset-trigger hook emission, but it is not merge-ready without real Discord/gateway behavior proof and PR-body scope cleanup. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes at source level: configure a custom reset trigger such as !fresh, let session initialization mark resetTriggered, then current main's fallback hook path returns because the command body is not slash-prefixed. I did not run a live Discord/gateway flow in this read-only review. Is this the best way to solve the issue? Yes for the code shape, with caveats: carrying the matched reset trigger from session initialization into fallback hook emission is the narrowest maintainable fix I found. It is not merge-ready until real Discord/gateway proof is supplied and the PR body matches the actual diff. Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff is limited to TypeScript reset/session logic and tests with no dependency, workflow, credential, or artifact changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against cf36cb915dd6. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
!new/!resetinstead of only slash commandssessionFilepathsFixes #55474.
Supersedes #56362.
What Problem This Solves
Discord/custom reset trigger aliases such as
!freshcould rotate a session without running the expected reset hook fallback path, leaving custom reset sessions inconsistent with the built-in/newand/resetbehavior.Evidence
origin/mainand resolved the conflict insrc/auto-reply/reply/get-reply.tsby preserving both the current session-prepared callback path and the custom reset-trigger fallback hook mapping.node scripts/run-vitest.mjs run src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts src/auto-reply/reply/session.test.ts --reporter=verbosepassed 123 tests on commit5fff06e3e642121b7d5d3c95768108f2cb31f8c0.pnpm exec oxfmt --check --threads=1 src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts src/auto-reply/reply/get-reply.test-fixtures.ts src/auto-reply/reply/get-reply.ts src/auto-reply/reply/session.test.ts src/auto-reply/reply/session.tspassed.git diff --check origin/main...HEADpassed.Tests
pnpm test src/auto-reply/reply/session.test.ts src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts src/gateway/server.sessions.reset-models.test.ts src/config/sessions/sessions.test.tspnpm check:changed