mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
fix(channels): add ellipses to progress draft defaults
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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],
|
||||
);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user