Repository navigation
Repeat a finished thread: schedule its prompt or distill it into a workflow (#285) - #379
Merged
currentbits merged 9 commits intoAug 17, 2026
Conversation
Wires git:conflictForecast end to end with a stub implementation so the backend and UI can be built in parallel against a fixed shape. Co-Authored-By: Claude Opus 5 <[email protected]>
… Skill manager: install once, fan out to every provider's ski
… Use macOS 27's fm CLI as a free local LLM for housekeeping
Shared surface for the two halves of one-click recurrence: - src/repeatThread.ts: RepeatDraft + repeatDraftFromDetail (first user message) - ipc.ts: DistilledWorkflow + threads.distill declaration Co-Authored-By: Claude Opus 5 <[email protected]>
Main-process half: electron/distill.js reads the transcript, asks fm for 2-4 reusable phases, and falls back to a single phase from the first user prompt when fm is missing or returns junk. Nothing is saved. Exposes threads.distill and runs.distill (contract put it on runs; the renderer calls it on threads).
On a finished thread, the overflow menu now offers Schedule this prompt (prefill AutomationsView from the first user message) and Distill into workflow (runs.distill, then open WorkflowsModal as a new unsaved draft).
…into coder/turn-any-finished-thread-into-an-automat-505ae1
Both halves landed a channel each; the CoderApi type and the renderer use runs.distill, so the threads:distill duplicate goes. Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…ed-thread-into-an-automat-505ae1 # Conflicts: # electron/worktrees.js # src/App.tsx
currentbits
deleted the
coder/turn-any-finished-thread-into-an-automat-505ae1
branch
October 3, 2026 16:07
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.
Closes #285.
Most automations start life as a one-off run that worked. This adds the on-ramp: two actions in the thread header overflow menu, both hidden while a run is live.
Schedule this prompt…
Seeds the Automations create form from the open thread — its first non-empty user message as the prompt, plus the thread's project, provider and model. The user picks a preset and hits create; every field stays editable. No backend work: the automations scheduler already handled everything past that point.
src/repeatThread.ts—RepeatDraft+repeatDraftFromDetail(first user message; later ones are follow-ups that only make sense mid-conversation)AutomationsViewtakes an optionaldraftprop that prefills the formThreadViewmenu item →Appstate → automations viewDistill into workflow…
New
runs:distillhandler (electron/distill.js) reads a finished thread's transcript and distills it into a 2–4 phase workflow template draft. Nothing is persisted: the draft opens unsaved in the existing workflows editor for review, and saving goes through the existingworkflows.save. Phases always inherit the thread's own provider/model.Summarisation uses the local macOS
fmCLI (electron/fm.js, same pattern asfm-title.js). Whenfmis missing, times out, or returns junk, it falls back to a deterministic singlerepeatphase seeded from the first prompt — a distill call never rejects just because the local model is absent.Known limit:
fmis not installed on this machine, so distill currently produces that fallback here. Real summarisation only kicks in where the macOS 27fmCLI exists; a paid-provider distill path is the upgrade if that turns out to matter.Not in scope
#275's parameterised, shareable bundle format. The distilled output is a plain workflow template, which is what the app has today.
Verification
npm run typecheck— cleannpm run test:renderer— greennpm run test:electron— 1031 pass; 3 suites fail (orch-server HTTP, orch-server provider injection, wireClient × webBridge). All three also fail at the pre-merge baseline in this worktree — they need real sockets.Built by two parallel workers on a shared contract commit (renderer / main process, disjoint file sets). Both landed a
distillIPC channel; thethreads:distillduplicate was cut in favour ofruns:distill, which is where theCoderApitype and the renderer call it.🤖 Generated with Claude Code