Skip to content

feat(outbound,update): re-apply message-action normalization and update-runner (#2207)#2252

Merged
alexey-pelykh merged 1 commit intomainfrom
2207-message-action-normalization-update-runner
Apr 10, 2026
Merged

feat(outbound,update): re-apply message-action normalization and update-runner (#2207)#2252
alexey-pelykh merged 1 commit intomainfrom
2207-message-action-normalization-update-runner

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • message-action-runner.ts: Extract 45-line inline target/channel inference block to normalizeMessageActionInput() call; add source === "tool-context-fallback" handling in resolveChannel for better channel routing; remove now-unused imports
  • update-runner.ts: Re-apply git-based self-update mode with preflight worktree validation, globalInstallFallbackArgs for install resilience, resolveStableNodePath for doctor invocation, normalizePackageTagInput delegation, runStep helper for consistent step tracking, and UI assets health verification post-doctor
  • update-runner.test.ts: Update test assertion for renamed reason string (no-package-managernot-git-install)

All dependency modules verified to exist: message-action-normalization.ts, package-tag.ts, stable-node-path.ts, control-ui-assets.ts, detect-package-manager.ts, update-channels.ts, update-check.ts, update-global.ts.

Closes #2207

Test plan

  • TypeScript type-check passes (no errors in changed files)
  • oxlint passes on changed files
  • oxfmt passes on changed files
  • All 34 direct tests pass (update-runner.test.ts + message-action-runner.test.ts)
  • All 40 downstream tests pass (update-cli.test.ts, progress.test.ts, update.test.ts, message-action-normalization.test.ts)
  • Pre-commit hooks pass (lint, format, rebrand check)
  • CI build job
  • CI test job

🤖 Generated with Claude Code

…te-runner from v2026.3.1/v2026.3.2 (#2207)

Re-applies upstream improvements lost during PR #2191 wholesale restoration:

message-action-runner.ts:
- Extract 45-line inline target/channel inference to normalizeMessageActionInput()
- Add toolContext fallback source handling in resolveChannel
- Remove unused imports (applyTargetToParams, actionHasTarget, etc.)

update-runner.ts:
- Add git-based self-update mode with preflight worktree validation
- Add globalInstallFallbackArgs for install error resilience
- Use resolveStableNodePath for doctor invocation
- Delegate tag normalization to normalizePackageTagInput
- Add runStep helper for consistent step tracking
- Add UI assets health verification post-doctor

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 10, 2026 22:16
@alexey-pelykh alexey-pelykh merged commit f328c9b into main Apr 10, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the 2207-message-action-normalization-update-runner branch April 10, 2026 22:22
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.

Re-apply message-action normalization and update-runner from v2026.3.1/v2026.3.2

1 participant