Recommend reporting runs without error messages
Merged
YO
3d ago+1589+1589+0123456789012345678901234567890123456789-2054-2054-0123456789012345678901234567890123456789
Summary
The reporting levels stay split: runs sends run status, and errors also sends failed steps' error messages. Error messages can hold hosts, paths, or data a step printed, so sending them should be a deliberate choice. The default and recommended level becomes runs; until now it was errors.
Changes
- Monitoring dialog and connect offer: Health and run status (recommended) starts selected. Health, run status, and error messages loses "(recommended)".
dagu license activatequestion:1) Health and run status (recommended),2) Health, run status, and error messages,3) Health only,4) Nothing. Enter choosesruns. The--reporthelp and error listrunsfirst too.- A job run with
cloud.run_keyand nocloud.reportreports atruns;cloud.report: errorsadds error messages. - RFC 022 and the
cloud.run_keyschema description namerunsas the job run default. - Removed the one-time "Show why runs fail in Dagu Console" notice, which pushed servers at
runstowarderrors. It took with itLicenseMonitoring.errorsOfferedandPOST /license/monitoring/dismiss-errors-notice. - Unchanged: the levels
off,health,runs,errors;cloud.reportunset means off.
Core change
The level a server or job run starts at when nobody chose one:
// internal/cmd/license.go:231
var reportChoices = []struct {
level config.ReportLevel
label string
}{
{config.ReportRuns, "Health and run status (recommended)"},
{config.ReportErrors, "Health, run status, and error messages"},
{config.ReportHealth, "Health only"},
{config.ReportOff, "Nothing"},
}
// internal/cmd/job_reports.go:51
if level == "" {
level = config.ReportRuns
}
The UI starts its choice at LicenseMonitoringLevel.runs in ui/src/components/MonitoringDialog.tsx and ui/src/pages/license/ConnectSection.tsx.
Testing
TestChooseReportLevel: Enter givesruns, and2giveserrors.TestJobReportsForALocalRun: with a run key and nocloud.report, the level isruns.- License page and monitoring notice tests: the default connect and turn-on send
runs, and a level chosen before (errors) stays selected. A server atrunsshows no notice. e2e/license-experience.spec.ts: the free offer starts at Health and run status (recommended) and connects atruns.- Locally:
go test ./internal/cmd/(license and job report tests).golangci-lintoninternal/cmd.pnpm exec tsc --noEmit, and the fullvitest run: 627 files, 9574 tests.
Performance
No performance risk: only which level is selected first changes.
Compatibility
- Existing choices and configuration keep their level.
- A job run with a run key and no
cloud.reportstops sending error messages. Setcloud.report: errorsto keep them. - API:
GET /license/monitoringno longer returnserrorsOffered, andPOST /license/monitoring/dismiss-errors-noticeis gone. Only Dagu's own UI used them. - Stored data: a saved
errors_offeredkey incloud/report-settings.jsonis ignored. A downgrade reads the file as before and may show the offer once more.
Agent
Claude Code, claude-opus-5-5, xhigh