mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
fix(qa): pin Slack draft progress transport
This commit is contained in:
@@ -292,7 +292,14 @@ export function buildSlackQaConfig(
|
||||
? {
|
||||
streaming: {
|
||||
mode: "progress" as const,
|
||||
// These scenarios assert the portable draft compositor and
|
||||
// chat.update identity. Native task streams have their own
|
||||
// transport proof and do not expose that draft contract.
|
||||
nativeTransport: false,
|
||||
progress: {
|
||||
// The per-run command marker is the tool-line correlation
|
||||
// key; the product default intentionally hides raw commands.
|
||||
commandText: "raw" as const,
|
||||
label: false,
|
||||
maxLines: 4,
|
||||
toolProgress: progressOverrides.toolProgress,
|
||||
|
||||
@@ -596,12 +596,18 @@ describe("Slack live QA runtime helpers", () => {
|
||||
|
||||
expect(progressConfig("slack-progress-commentary-true")).toMatchObject({
|
||||
commentary: true,
|
||||
commandText: "raw",
|
||||
toolProgress: false,
|
||||
});
|
||||
expect(progressConfig("slack-progress-commentary-false")).toMatchObject({
|
||||
commentary: false,
|
||||
commandText: "raw",
|
||||
toolProgress: false,
|
||||
});
|
||||
expect(
|
||||
buildScenarioConfig("slack-progress-commentary-true").channels?.slack?.accounts?.sut
|
||||
?.streaming?.nativeTransport,
|
||||
).toBe(false);
|
||||
expect(
|
||||
buildScenarioConfig("slack-progress-commentary-false").agents?.defaults?.verboseDefault,
|
||||
).toBe("off");
|
||||
|
||||
Reference in New Issue
Block a user