feat(chat): default --ai-tag on so dws-sent messages carry the AI badge#524
Merged
Conversation
audanye-sudo
approved these changes
Jun 29, 2026
Per req 83667761 (奕皓): messages sent through dws should carry the 「通过AI发送」badge by default, transparently flagging AI/CLI-sent messages. - `--ai-tag` default flipped false → true on `chat message send` / `reply`, so no flag / `--ai-tag` / `--ai-tag=true` all attach clawType (open edition `openClaw`); only `--ai-tag=false` omits it (send as the user). The switch name is unchanged. reply honors the same default (no longer leaks the wukong clawType). - skill chat.md: concise rule — default-on, pass `--ai-tag=false` to disable. - tests: default now asserts clawType present; added an `--ai-tag=false` opt-out case.
77270f6 to
2b2bbbb
Compare
PeterGuy326
added a commit
to audanye-sudo/dingtalk-workspace-cli
that referenced
this pull request
Jun 29, 2026
PeterGuy326
added a commit
that referenced
this pull request
Jun 29, 2026
* docs: condense Key Services table and document multi-org profiles The Key Services section listed a per-service command count and an exhaustive subcommand token dump plus a long description, which had drifted out of date and was hard to scan. Condense it (EN + zh) to a lark-cli-style Service / Command / Capabilities table with a one-line capability per service, pointing to docs/command-index.md for the full listing. Also document the multi-organization (profile) capability, which had no README coverage: a collapsible section placed right after "Custom App mode (CI/CD, ISV integration)" in Getting Started, covering auth login adding a profile, profile list / switch, the global --profile one-shot flag, and the agent- orchestrated cross-org read pattern (writes stay on the current org). Mirrored in README_zh.md. CHANGELOG: add a [1.0.45] entry describing the full multi-profile feature (login / profile management / --profile / backward-forward compatibility / skill docs) plus the persistence hardening (locking, atomic writes, corruption recovery, safe legacy mirror, no cross-org token fallback). * docs(changelog): note --ai-tag default-on (#524) in [1.0.45] --------- Co-authored-by: 修雨 <huyizhou.hyz@alibaba-inc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Req 83667761 (奕皓): messages sent through dws should carry the 「通过AI发送」badge by default, transparently flagging AI/CLI-sent messages — not opt-in.
Change
--ai-tagdefault flipped false → true onchat message send/reply. So no flag /--ai-tag/--ai-tag=trueall attachclawType(open editionopenClaw); only--ai-tag=falseomits it (send as the user). The switch name is unchanged (开关别动).replyhonors the same default and no longer leaks the hardcodedwukongclawType.chat.md: concise rule — default-on, pass--ai-tag=falseto disable.clawTypepresent; added an--ai-tag=falseopt-out case.Verification (wukong01 + --dry-run)
send --text hi(no flag)openClaw✅send --text hi --ai-tag/--ai-tag=trueopenClaw✅send --text hi --ai-tag=falsereply ...(no flag)openClaw✅go test ./internal/helpers/green.