Skip to content

feat(chat): default --ai-tag on so dws-sent messages carry the AI badge#524

Merged
PeterGuy326 merged 1 commit into
mainfrom
docs/skill-ai-tag
Jun 29, 2026
Merged

feat(chat): default --ai-tag on so dws-sent messages carry the AI badge#524
PeterGuy326 merged 1 commit into
mainfrom
docs/skill-ai-tag

Conversation

@PeterGuy326

@PeterGuy326 PeterGuy326 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

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-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 and no longer leaks the hardcoded wukong clawType.
  • skill chat.md: concise rule — default-on, pass --ai-tag=false to disable.
  • tests: default case now asserts clawType present; added an --ai-tag=false opt-out case.

Verification (wukong01 + --dry-run)

invocation clawType
send --text hi (no flag) openClaw
send --text hi --ai-tag / --ai-tag=true openClaw
send --text hi --ai-tag=false omitted ✅
reply ... (no flag) openClaw

go test ./internal/helpers/ green.

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.
@PeterGuy326 PeterGuy326 changed the title docs(skill): declare --ai-tag rule so agents mark AI-sent messages feat(chat): default --ai-tag on so dws-sent messages carry the AI badge Jun 29, 2026
@PeterGuy326 PeterGuy326 merged commit 79b8eda into main Jun 29, 2026
6 checks passed
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>
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