Repository navigation
feat(ui): manage automation condition triggers - #126534
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 10:03 AM ET / 14:03 UTC. ClawSweeper reviewWhat this changesThe branch adds Control UI indicators, editing controls, and filtering for existing cron condition triggers, adds an optional paginated cron-list filter, and isolates an ambient Claude CLI credential test. Merge readinessKeep open: this maintainer-labeled feature has no source-backed correctness finding, but exact-head CI is still incomplete and requires maintainer merge handling. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherCron jobs are configured in Control UI and sent to the Gateway cron API, which reads and updates persistent automations. This change carries existing trigger configuration through the UI, protocol, and server-side pre-pagination filtering without changing scheduler execution. flowchart LR
A[Operator in Control UI] --> B[Cron editor and filters]
B --> C[Gateway cron API]
C --> D[Persistent cron service]
D --> E[Filtered automation page]
E --> B
Before merge
Agent review detailsSecurityNone. PR surfaceSource +246, Tests +197, Other +4. Total +447 across 20 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the additive UI and protocol extension after exact-head CI is green and the maintainer review confirms the current merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a feature addition rather than a reported failure; the branch supplies source and browser-harness coverage for the new flow. Is this the best way to solve the issue? Yes: it reuses the existing persisted trigger contract and puts filtering at the service boundary before pagination instead of creating a parallel scheduler path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fae9bd6bafa1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Co-authored-by: Tak Hoffman <[email protected]>
1fe4712 to
b2e9dc0
Compare
|
Land-ready evidence for exact head Completed:
Local proof:
Hosted proof:
Known proof gaps: none. |
|
Merged via squash.
|
* feat(ui): manage cron condition triggers * test(models): isolate ambient CLI availability Co-authored-by: Tak Hoffman <[email protected]> --------- Co-authored-by: RoboClaw <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
What Problem This Solves
Automation condition triggers already prevent unnecessary model calls, but Control UI did not show that an automation was conditional, could not manage the trigger, and could not filter conditional jobs. Operators had to switch to the CLI or agent tooling and could otherwise misread a conditional automation as running its agent task on every scheduled occurrence.
Issue creation was attempted through both GraphQL and REST, but the current GitHub token lacks issue-write permission (403), so this PR carries the complete durable context.
Why This Change Was Made
This reuses the existing
triggerjob contract: Control UI adds a compact indicator and Advanced editor, while an additivecron.list.triggerfilter keeps Conditional/Unconditional filtering correct before pagination. Existing configured triggers remain preserved whencron.triggers.enabledis false and can still be cleared.No scheduler execution path, trigger semantics, or default behavior changes.
User Impact
Operators can now identify conditional automations at a glance, filter the inventory by condition presence, and create, edit, or clear trigger scripts directly from Control UI. Jobs without triggers behave exactly as before.
Evidence
Control UI
Filter and compact condition indicator:
Collapsed Advanced summary:
Expanded trigger editor:
Validation
node scripts/run-vitest.mjs packages/gateway-protocol/src/cron-validators.test.ts src/cron/service.list-page-sort-guards.test.ts src/gateway/server-methods/cron.validation.test.ts ui/src/lib/cron/index.test.ts ui/src/pages/cron/view.test.ts— 404 tests passed.node scripts/run-vitest.mjs ui/src/pages/cron/cron-page.test.ts— 18 tests passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-trigger-filter.e2e.test.ts— browser E2E passed.pnpm protocol:check— generated schema/Swift/Kotlin consistency passed.pnpm tsgo:core,pnpm tsgo:core:test, andpnpm tsgo:ui— passed.pnpm lint:coreand targeted UI stylelint — passed.pnpm build— passed, including the production Control UI bundle..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean; no accepted/actionable findings.The aggregate changed-files command passed every lane through UI typecheck but its core-lint child was terminated by the local command time budget (exit 143); the same required
pnpm lint:corelane passed directly afterward. The Linux host's macOS tooling suite is locally blocked because the host lacks thefilebinary; protocol Swift generation/check passed and CI remains the platform proof.CI gate repair
models-list-result.cli-runtime-availability.test.ts: the test passed alone but could reuse the real credential module in a shared Vitest worker and report the fake Claude login unavailable.HOME, exercising the real Gateway availability boundary without a production test seam.Co-authored-by: Tak Hoffman <[email protected]>.AI assistance