Skip to content

feat: change what a started Knowledge scribe reads from the Scribes page - #206175

Merged
jalehman merged 3 commits into
mainfrom
openclaw/tide-crayfish-62ad0e
Nov 26, 2026
Merged

jalehman merged 3 commits into
mainfrom
openclaw/tide-crayfish-62ad0e

Conversation

@jalehman

@jalehman jalehman commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Once a Knowledge scribe was started, the Scribes page could change its schedule but not what it reads. Turning off direct messages for Learn from Slack, for example, meant removing the automation and starting over, which gave it a new ID and cleared its run history. That came up when a Slack scribe kept failing because the user token couldn't list group DMs.

User Impact

  • A started Learn from conversations, Learn from Granola or Learn from Slack scribe shows a Settings row in its detail, with Change…. It opens the same "Which…" choices as the start dialog, filled in with the current settings. Save settings stays disabled until something changes.
  • Saving rebuilds the run message from the new settings on the same automation, so its ID, schedule and Recent runs stay.
  • Settings are read only when the run message matches what Knowledge generated, now or in an earlier version. A hand-edited message says its settings can't be read and offers Reset…, which lists the lines that change before it applies the default settings. The page never guesses settings.
  • A scribe still on a turn-created automation says to upgrade first, because saving would replace that automation without the Upgrade confirmation.
  • A saved user-token opt-in can be turned off even after the user token is removed.
  • Not editable: "Starting from", which only matters for the first run, and Knowledge Consolidation, whose only setting is its schedule.

Why This Change Was Made

Each scribe's run message is generated from its options, and checkRunMessage already compared saved messages with every generated one. It now also returns the options that produced an exact match, so the editor reads settings without a new stored field. The dialog reuses the start dialog's field builders, and saving uses the same administrator cron.update path as Change schedule.

Reading settings from text depends on keeping old wordings in RUN_WORDINGS whenever the generated text changes. A new test pins a digest of every generated run message and fails with that instruction when the text changes. Storing options as structured data would avoid that, but was deferred because most people keep the defaults.

Evidence

  • Live, on a test Gateway with this change: Learn from Slack's settings showed "Bot and user token channels, direct messages included". The owner turned off direct messages with Change…. The automation kept its ID and admin ownership, and its message changed to "Direct messages and group DMs: skipped." The next run listed and read Slack channels without the earlier missing_scope (needed: mpim:read) failure and wrote Knowledge pages.
  • Tests: scribe view, state and Slack field tests pass (64). They cover:
    • a settings change saved on the same automation;
    • Reset for a hand-edited message;
    • a turn-created automation pointing to Upgrade with no writes;
    • clearing a saved user-token opt-in without a user token;
    • a round trip of all 26 setting combinations back to their options;
    • the generated-wording digest.
  • pnpm tsgo:extensions, pnpm tsgo:extensions:test, oxlint, oxfmt and the line-cap ratchet are clean on this head.
  • A separate pre-PR review found two issues, both fixed with tests: saving settings on a turn-created automation would have replaced it without confirmation, and a saved user-token opt-in couldn't be cleared once the token was gone.

Screenshots

Before: main at 303452b (#205614), same UI. After: this PR. Control UI E2E harness with the real Knowledge plugin UI against a mocked Gateway; synthetic fixtures, clock fixed at 2026-11-24 10:00 PST, light theme, 1280px wide.

Clean comparison

Learn from Slack detail

Before After
Before: No Settings row After: Settings row with summary and Change…

Turn-created automation

Before After
Before: No Settings row After: Settings row points to Upgrade, no buttons

Change settings dialog, unchanged (new state)

After: Save settings disabled until a choice changes

Change settings dialog, DMs turned on (new state)

After: Save settings enabled

Hand-edited run message (new state)

After: Settings can't be read, Reset…

Reset confirmation (new state)

After: Lines the reset removes and adds

Annotated comparison

Learn from Slack detail

Before After
Before, annotated: No Settings row After, annotated: Settings row with summary and Change…

Turn-created automation

Before After
Before, annotated: No Settings row After, annotated: Settings row points to Upgrade, no buttons

Change settings dialog, unchanged

After, annotated: Save settings disabled until a choice changes

Change settings dialog, DMs turned on

After, annotated: Save settings enabled

Hand-edited run message

After, annotated: Settings can't be read, Reset…

Reset confirmation

After, annotated: Lines the reset removes and adds

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: knowledge size: L labels Nov 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 26, 2026
@jalehman
jalehman merged commit 96e53f4 into main Nov 26, 2026
110 of 112 checks passed
@jalehman
jalehman deleted the openclaw/tide-crayfish-62ad0e branch November 26, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. plugin: knowledge size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant