Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@grp06
Copy link
Contributor

@grp06 grp06 commented Jan 15, 2026

Summary

Testing

  • pnpm test -- src/commands/doctor-legacy-config.test.ts (ran full suite)

AI Assistance

  • AI-assisted (opencode); I reviewed the changes and understand the diff.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 669a39d57f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 221 to 223
const legacyAckReaction = cfg.messages?.ackReaction?.trim();
if (legacyAckReaction) {
const hasWhatsAppConfig = cfg.channels?.whatsapp !== undefined;
if (legacyAckReaction && hasWhatsAppConfig) {

Choose a reason for hiding this comment

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

P2 Badge Keep migrating ackReaction for default WhatsApp configs

This new guard skips the migration whenever channels.whatsapp is absent, but WhatsApp can still be active with no config section (e.g., listWhatsAppAccountIds falls back to the default account and resolveWhatsAppAccount only reads cfg.channels?.whatsapp for ackReaction). For users who only set messages.ackReaction and rely on default WhatsApp config, running doctor will no longer copy that setting into channels.whatsapp.ackReaction, so WhatsApp acks silently stop. If the goal is to avoid re-adding for non‑WhatsApp users, consider checking for actual WhatsApp usage (auth/account presence) rather than the config section’s existence.

Useful? React with 👍 / 👎.

@steipete steipete self-assigned this Jan 15, 2026
steipete added a commit that referenced this pull request Jan 15, 2026
@steipete steipete closed this Jan 15, 2026
@steipete
Copy link
Contributor

Landed via squash+rebase onto main.

Commit: 1078d17

Thanks @grp06!

steipete added a commit to mneves75/clawdbot that referenced this pull request Jan 15, 2026
cpojer pushed a commit to cpojer/clawdbot that referenced this pull request Jan 16, 2026
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