Repository navigation
Commit d8c15c3
feat(refiner+workflow): 6 fixes — workflow_pattern + reject_reason + chinese summary + batch undo + drop execution-pipeline + checkpoint-refine
Address user-reported issues:
- A1: surface workflow_pattern kind in the UI (was missing from CORE_KINDS
on the frontend so user-told-orchestrator workflow exps fell back to raw
IDs). Add 套路 label + palette mapping. Tighten the refine prompt with
a workflow-kind classification rule so 节点顺序/因果/缺工具/节点序列+
恢复路径 guidance lands in workflow_rule/gap/pattern instead of the
catch-all know_how bucket.
- anomalyco#9: refiner prompt rejects single-statement facts / public knowledge /
one-shot context. Adds an optional reject_reason field to the refine
output schema; when set, the attach path short-circuits and writes the
attempt to rejected.ndjson (stage=llm_reject) so the user can audit.
- anomalyco#11: confirm checkpoint.failed already triggers observeWorkflowCompletion
in workflow/index.ts:1885. No code change.
- anomalyco#2: workflow_update tool description now demands Chinese single-sentence
summary so the timeline view shows what the agent is doing at a glance.
- A2: time-windowed batch undo. New Refiner.undoRefinementsSince(ms) +
POST /refiner/global-rerefine/undo route. UI button in the global
re-refine modal prompts the user for a window in minutes, reverse-
applies any experience whose last refinement is within it.
- anomalyco#7: delete the Execution Pipeline plugin entirely. Workflow event
timeline + node attempt_history.summary already cover this.
Co-Authored-By: Claude Opus 4.7 <[email protected]>1 parent bb573a9 commit d8c15c3
7 files changed
Lines changed: 168 additions & 308 deletions
File tree
- packages
- app/src
- pages/session
- react-workflow/plugins
- opencode/src
- refiner
- server/routes/instance
- tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
4269 | 4272 | | |
4270 | 4273 | | |
4271 | 4274 | | |
| 4275 | + | |
| 4276 | + | |
4272 | 4277 | | |
4273 | 4278 | | |
4274 | 4279 | | |
| |||
4340 | 4345 | | |
4341 | 4346 | | |
4342 | 4347 | | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
4343 | 4359 | | |
4344 | 4360 | | |
4345 | 4361 | | |
| |||
5739 | 5755 | | |
5740 | 5756 | | |
5741 | 5757 | | |
| 5758 | + | |
| 5759 | + | |
| 5760 | + | |
| 5761 | + | |
| 5762 | + | |
| 5763 | + | |
| 5764 | + | |
| 5765 | + | |
| 5766 | + | |
| 5767 | + | |
| 5768 | + | |
| 5769 | + | |
| 5770 | + | |
| 5771 | + | |
| 5772 | + | |
| 5773 | + | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
| 5778 | + | |
| 5779 | + | |
| 5780 | + | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
| 5795 | + | |
| 5796 | + | |
| 5797 | + | |
| 5798 | + | |
| 5799 | + | |
5742 | 5800 | | |
5743 | 5801 | | |
5744 | 5802 | | |
| |||
6883 | 6941 | | |
6884 | 6942 | | |
6885 | 6943 | | |
| 6944 | + | |
| 6945 | + | |
6886 | 6946 | | |
6887 | 6947 | | |
6888 | 6948 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| 271 | + | |
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
| |||
0 commit comments