Skip to content

fix(worker): gate human input activity diagnostics#18

Merged
zebbern merged 1 commit into
mainfrom
codex/quiet-human-input-activity-logs
Jun 20, 2026
Merged

fix(worker): gate human input activity diagnostics#18
zebbern merged 1 commit into
mainfrom
codex/quiet-human-input-activity-logs

Conversation

@zebbern

@zebbern zebbern commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • route human input activity success diagnostics through workflowDiagnosticLog
  • keep warning paths on console.warn
  • add focused tests that assert successful create/cancel/expire activity paths stay quiet by default

Verification

  • bun test worker/src/temporal/activities/tests/human-input.activity.test.ts
  • bun test worker/src/temporal/activities
  • bun test worker
  • bun run typecheck
  • bun run lint
  • bun run test

Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 20, 2026 19:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces noisy worker activity logging by routing successful Human Input activity diagnostics through the existing workflowDiagnosticLog gate (controlled by SENTRIS_DEBUG_WORKFLOW=1), while preserving console.warn for non-ideal paths. It also introduces targeted tests to ensure successful paths remain quiet by default.

Changes:

  • Replaced console.log usage in Human Input activities (create/cancel/expire) with workflowDiagnosticLog to gate success diagnostics.
  • Added Bun tests asserting that successful create/cancel/expire paths do not emit console.log output when workflow debugging is disabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
worker/src/temporal/activities/human-input.activity.ts Gates success-path Human Input activity diagnostics behind workflowDiagnosticLog instead of unconditional console.log.
worker/src/temporal/activities/tests/human-input.activity.test.ts Adds regression tests ensuring success-path diagnostics stay quiet by default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +77 to +79
initializeHumanInputActivity({
database: database.db as unknown as NodePgDatabase<typeof schema>,
});
Comment on lines +96 to +98
initializeHumanInputActivity({
database: database.db as unknown as NodePgDatabase<typeof schema>,
});
@zebbern zebbern merged commit 11afad3 into main Jun 20, 2026
6 checks passed
@zebbern zebbern deleted the codex/quiet-human-input-activity-logs branch June 20, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants