mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
Merge pull request #4067 from proffesor-for-testing/fix/console-lastresult-expired
fix(console): console_state reports an expired confirm card as lastResult.expired
This commit is contained in:
6 files changed
+26
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ruflo-console",
|
||||
"description": "ruflo's cockpit inside Claude Code and the one /ruflo command for every ruflo mod (function hooks, early access). Views: overview with health alerts, swarm topology graph, claims flow with TTL rings, federation map, plugin health matrix, learning curve and pipeline, MetaHarness radar and audit trend, memory, cost gauge, agent timeline, approvals queue, event stream, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, agent drill-down; a command palette for confirm-gated actions through the ruflo CLI; a band above the prompt. Reads ruflo's files and the CLI's local JSON; anything not measured reads n/a. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings → Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",
|
||||
"version": "0.43.2",
|
||||
"version": "0.43.3",
|
||||
"author": {
|
||||
"name": "ruvnet",
|
||||
"url": "https://github.com/ruvnet"
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
Newest first. One `## <version> — <date>` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; older versions: `git log -- plugins/ruflo-console`.
|
||||
|
||||
## 0.43.3 — 2026-10-12
|
||||
- fix: `console_state` tells Claude that a confirm card expired: `lastResult` carries `expired: true` after a card nobody answered was cleared unrun at 30 s (the runner already set the flag; the tool left it out), so Claude can tell "you did not answer" from a run that failed without reading the detail text. An ordinary result has no `expired` field (#3985 follow-up, thanks @proffesor-for-testing, #4067)
|
||||
|
||||
## 0.43.2 — 2026-10-12
|
||||
- fix: removing a worktree no longer runs the repository's own programs, and no longer deletes unsaved files: `git worktree remove` runs its own status, which ran `core.fsmonitor` and the `post-index-change` hook, and with `status.showUntrackedFiles=no` it read a worktree holding new files as clean and deleted them. The removal, the worktree status probe, the changed-files read and `describe --dirty` now switch the fsmonitor (and for removal and describe, hooks) off, and list untracked files whatever the setting says (#4090, thanks @proffesor-for-testing, #4092)
|
||||
- fix: a `filter.<name>.clean`, `.smudge` or `.process` command in a repository's config no longer runs when the console compares a worktree with HEAD: before the removal, the worktree status and the diff drill-down, it lists the configured drivers (a config read) and blanks each one on the command line; a driver name it cannot blank exactly refuses the probe instead of running it
|
||||
|
||||
@@ -215,7 +215,7 @@ function stateJson(deps: ModelToolDeps, filter: string): string {
|
||||
title: VIEWS.find(view => view.id === state.view)?.label ?? state.view,
|
||||
screen,
|
||||
waiting: state.pending === null ? null : { ...(askedBy(state.pending) !== '' && { askedBy: askedBy(state.pending).replace(/: $/, '') }), label: modelLine(state.pending.label, 120), expect: modelLine(state.pending.expect, 160), note: state.pending.note === undefined ? undefined : modelLine(state.pending.note, 160) },
|
||||
lastResult: state.outcome === null ? null : { label: modelLine(state.outcome.label, 100), ok: state.outcome.ok, detail: modelLine(state.outcome.detail, 200), lines: (state.outcome.lines ?? []).slice(0, 12).map(line => modelLine(line, 160)) },
|
||||
lastResult: state.outcome === null ? null : { label: modelLine(state.outcome.label, 100), ok: state.outcome.ok, detail: modelLine(state.outcome.detail, 200), lines: (state.outcome.lines ?? []).slice(0, 12).map(line => modelLine(line, 160)), ...(state.outcome.expired === true && { expired: true }) },
|
||||
entries,
|
||||
entryCount: all.length,
|
||||
entriesNote: entries.length < (words.length === 0 ? all.length : entries.length) || (words.length > 0 && entries.length === 40) ? 'the list is cut: pass filter (words in an id or label) to find other entries' : undefined,
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
* The console's version, shown on the header so a person can tell which build is running. Kept equal to the plugin's manifest
|
||||
* (`.claude-plugin/plugin.json`); tests/version.spec.ts fails if the two drift.
|
||||
*/
|
||||
export const CONSOLE_VERSION = '0.43.2'
|
||||
export const CONSOLE_VERSION = '0.43.3'
|
||||
@@ -11,9 +11,9 @@ step() { printf "→ %s ... " "$1"; }
|
||||
ok() { printf "PASS\n"; PASS=$((PASS+1)); }
|
||||
bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }
|
||||
|
||||
step "1. plugin.json declares ruflo-console 0.43.2"
|
||||
step "1. plugin.json declares ruflo-console 0.43.3"
|
||||
grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \
|
||||
&& grep -q '"version": "0.43.2"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
|
||||
&& grep -q '"version": "0.43.3"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
|
||||
|
||||
step "2. hooks.json names exactly one module and no classic hook commands"
|
||||
grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \
|
||||
|
||||
@@ -169,6 +169,24 @@ describe('console_run with a stale or withdrawable card', () => {
|
||||
expect(state.events.some(event => /expired after 30 s, not run/.test(event.text))).toBe(true)
|
||||
})
|
||||
|
||||
it('console_state hands the expiry to Claude as lastResult.expired, and an ordinary result carries no such field', async () => {
|
||||
const { state, deps, age } = modelSetup()
|
||||
|
||||
expect(await callTool('console_run', { id: 'mem-store', text: 'console k1 v1' }, deps)).toMatch(/Waiting for the person/)
|
||||
age()
|
||||
|
||||
const expired = JSON.parse(await callTool('console_state', {}, deps)) as { waiting: unknown; lastResult: { ok: boolean; detail: string; expired?: boolean } | null }
|
||||
|
||||
expect(expired.waiting).toBeNull()
|
||||
expect(expired.lastResult).toMatchObject({ ok: false, expired: true })
|
||||
expect(expired.lastResult?.detail).toMatch(/^expired: ask again/)
|
||||
|
||||
state.outcome = { label: 'store a note', ok: true, verified: 'n/a', detail: 'stored', atMs: Date.now() }
|
||||
const ordinary = JSON.parse(await callTool('console_state', {}, deps)) as { lastResult: Record<string, unknown> | null }
|
||||
|
||||
expect(ordinary.lastResult).not.toHaveProperty('expired')
|
||||
})
|
||||
|
||||
it('console_run ask-withdraw takes back Claude’s own write-class card; nothing runs', async () => {
|
||||
const { state, deps, ran } = modelSetup()
|
||||
|
||||
|
||||
Reference in new issue
Block a user