Skip to content

fix(piebald): progress accounting, fork validation, generic CLI help#480

Merged
wesm merged 2 commits into
mainfrom
fix/piebald-followups
May 10, 2026
Merged

fix(piebald): progress accounting, fork validation, generic CLI help#480
wesm merged 2 commits into
mainfrom
fix/piebald-followups

Conversation

@wesm
Copy link
Copy Markdown
Owner

@wesm wesm commented May 8, 2026

Summary

Follow-up fixes to #478 surfaced by post-merge review:

  • Progress accountingstats.messagesIndexed was tracking only the file-backed total, so the terminal PhaseDone callback regressed MessagesIndexed to the file-only count after Piebald/OpenCode/Warp/Forge work. Now updated inside advanceDBProgress so the cumulative count holds.
  • Fork ID validationsyncSinglePiebald, FindSource, and SourceMtime strip the -<row> suffix from fork IDs to look up the base chat, but didn't verify the requested fork actually exists. Stale or typoed IDs like piebald:42-999 could silently succeed or return mtimes for non-existent sessions. They now require an exact Session.ID match in the parsed results.
  • CLI help — drop the hard-coded agent list from agentsview --help. The list went stale every time a new agent was added (most recently Piebald); the README's supported-agents table and per-agent env vars below stay authoritative.

wesm added 2 commits May 8, 2026 12:01
The list went stale every time a new agent was added (most recently
Piebald). Replace with a generic description; the supported-agents
table in README.md and the per-agent env vars below stay authoritative.
- Keep stats.messagesIndexed in sync with dbProgress.MessagesIndexed
  inside advanceDBProgress so the terminal PhaseDone reports the
  cumulative count instead of regressing to the file-only total.
- Verify the requested Piebald session exists in the parsed results
  before treating a base-chat lookup as a hit in syncSinglePiebald,
  FindSource, and SourceMtime. Stale or typoed fork IDs like
  "piebald:42-999" now fail closed instead of silently succeeding.
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 8, 2026

roborev: Combined Review (0993b11)

Clean: all reviewers found no Medium, High, or Critical issues.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@wesm wesm merged commit 7039773 into main May 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant