Repository navigation
feat: change what a started Knowledge scribe reads from the Scribes page - #206175
Merged
Merged
Conversation
…d let a saved user-token opt-in be cleared
OpenClaw-Publication: 7d4c0b3c-60eb-8bc3-842f-726d07bec875
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Why This Change Was Made
Each scribe's run message is generated from its options, and
checkRunMessagealready 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 administratorcron.updatepath as Change schedule.Reading settings from text depends on keeping old wordings in
RUN_WORDINGSwhenever 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
missing_scope (needed: mpim:read)failure and wrote Knowledge pages.pnpm tsgo:extensions,pnpm tsgo:extensions:test, oxlint, oxfmt and the line-cap ratchet are clean on this head.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
Turn-created automation
Change settings dialog, unchanged (new state)
Change settings dialog, DMs turned on (new state)
Hand-edited run message (new state)
Reset confirmation (new state)
Annotated comparison
Learn from Slack detail
Turn-created automation
Change settings dialog, unchanged
Change settings dialog, DMs turned on
Hand-edited run message
Reset confirmation
🦞 Made with OpenClaw