fix(channels): add ellipses to progress draft defaults

This commit is contained in:
Peter Steinberger
2026-05-04 00:04:55 +01:00
parent 60cf8c79fe
commit 107aad9742
3 changed files with 45 additions and 44 deletions

View File

@@ -17,7 +17,7 @@ approval, and then turns that draft into the final answer when the channel can
do that safely.
```text
Shelling
Shelling...
- reading recent channel context
- checking matching issues
- preparing reply
@@ -52,7 +52,7 @@ A progress draft has two parts:
| Part | Purpose |
| -------------- | ----------------------------------------------------------------- |
| Label | A short title such as `Thinking` or `Shelling`. |
| Label | A short title such as `Thinking...` or `Shelling...`. |
| Progress lines | Compact run updates such as tool calls, task steps, or approvals. |
The label appears immediately when the agent starts replying. Progress lines are
@@ -85,30 +85,30 @@ normal block delivery. Use `streaming.block.enabled` or legacy
Progress labels live under `channels.<channel>.streaming.progress`.
The default label is `auto`, which chooses from OpenClaw's built-in single-word
label pool:
The default label is `auto`, which chooses from OpenClaw's built-in
single-word-with-ellipsis label pool:
```text
Thinking
Shelling
Scuttling
Clawing
Pinching
Molting
Bubbling
Tiding
Reefing
Cracking
Sifting
Brining
Nautiling
Krilling
Barnacling
Lobstering
Tidepooling
Pearling
Snapping
Surfacing
Thinking...
Shelling...
Scuttling...
Clawing...
Pinching...
Molting...
Bubbling...
Tiding...
Reefing...
Cracking...
Sifting...
Brining...
Nautiling...
Krilling...
Barnacling...
Lobstering...
Tidepooling...
Pearling...
Snapping...
Surfacing...
```
Use a fixed label:

View File

@@ -127,6 +127,7 @@ describe("channel-streaming", () => {
});
it("uses auto progress labels when no explicit label is configured", () => {
expect(DEFAULT_PROGRESS_DRAFT_LABELS.every((label) => label.endsWith("..."))).toBe(true);
expect(resolveChannelProgressDraftLabel({ random: () => 0 })).toBe(
DEFAULT_PROGRESS_DRAFT_LABELS[0],
);

View File

@@ -85,26 +85,26 @@ function asProgressConfig(value: unknown): ChannelStreamingProgressConfig | unde
}
export const DEFAULT_PROGRESS_DRAFT_LABELS = [
"Thinking",
"Shelling",
"Scuttling",
"Clawing",
"Pinching",
"Molting",
"Bubbling",
"Tiding",
"Reefing",
"Cracking",
"Sifting",
"Brining",
"Nautiling",
"Krilling",
"Barnacling",
"Lobstering",
"Tidepooling",
"Pearling",
"Snapping",
"Surfacing",
"Thinking...",
"Shelling...",
"Scuttling...",
"Clawing...",
"Pinching...",
"Molting...",
"Bubbling...",
"Tiding...",
"Reefing...",
"Cracking...",
"Sifting...",
"Brining...",
"Nautiling...",
"Krilling...",
"Barnacling...",
"Lobstering...",
"Tidepooling...",
"Pearling...",
"Snapping...",
"Surfacing...",
] as const;
export function getChannelStreamingConfigObject(