fix(commands): honor pause for configuration comments#4077
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
4220d20 to
fdcd074
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4077 +/- ##
=======================================
Coverage 93.65% 93.65%
=======================================
Files 384 384
Lines 35865 35866 +1
Branches 13160 13161 +1
=======================================
+ Hits 33589 33590 +1
Misses 1618 1618
Partials 658 658
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 03:21:52 UTC
⏸️ Suggested Action - Manual Review
Review summary Blockers
Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Motivation
@gittensory configurationhandler from performing a live GitHub comment when agent actions are paused, in dry-run, or globally frozen by the DB.Description
src/queue/processors.tsthe effectivemodeis now resolved withglobalPaused: isGlobalAgentPause(env) || (await isGlobalAgentFrozen(env))and the handler routes the response through the mode-awarecreateOrUpdateAgentCommandComment(..., mode)instead of the live-onlycreateIssueComment.test/unit/queue.test.tsto account for the marker-searchGETprobe in the mode-aware helper and added regression tests (it.each) that assert env pause, repo pause, repoagentDryRun, and DB global freeze prevent live comment posts while preserving the auditedmodemetadata.setGlobalAgentFrozenin tests to exercise the DB freeze path.Testing
git diff --checkwhich produced no whitespace/conflict issues and was successful.npx vitest run test/unit/queue.test.ts -t "configuration"and the modified unit tests passed (the test file ran and the configuration-related tests succeeded).npm run typecheckand it completed with no TypeScript errors.npm audit --audit-level=moderatebut the npm audit endpoint returned403 Forbiddenin this environment so the audit could not complete.Codex Task