Skip to content

Messaging: auto-repair misplaced channel hints and improve unknown-channel errors - #103

Merged
dgarson merged 1 commit into
dgarson/forkfrom
dgarson/channel-hint-autofix
Feb 23, 2026
Merged

dgarson merged 1 commit into
dgarson/forkfrom
dgarson/channel-hint-autofix

Conversation

@dgarson

@dgarson dgarson commented Feb 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • map provider channel labels/selection labels (core + plugin) to canonical channel IDs in normalizeMessageChannel
  • improve unknown channel failures to explain that channel expects a provider ID and that destination names/IDs belong in target
  • auto-repair common agent mistakes where destination values (for example cb-inbox) are passed in channel instead of target
  • treat normalized explicit target forms (for example channel:...) as IDs in target resolution so directory/API lookups are skipped when unnecessary

Verification

  • pnpm oxfmt --check src/infra/outbound/channel-selection.ts src/infra/outbound/channel-selection.test.ts src/infra/outbound/message-action-runner.ts src/infra/outbound/target-resolver.ts src/utils/message-channel.ts src/utils/message-channel.test.ts src/infra/outbound/message-action-runner.test.ts
  • pnpm test src/utils/message-channel.test.ts src/infra/outbound/channel-selection.test.ts src/infra/outbound/message-action-runner.test.ts
  • pnpm tsgo

Notes

  • pnpm check in this branch currently fails at repo baseline due an unrelated formatting issue in extensions/cost-tracker/src/cost-aggregator.ts.
  • pnpm lint in this branch reports many unrelated pre-existing violations under apps/web* and apps/web-next*.

@dgarson
dgarson merged commit 127d63e into dgarson/fork Feb 23, 2026
1 of 6 checks passed
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.

1 participant