Add self-update, conversion previews, and resume recipes#4
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (18)
📝 WalkthroughWalkthroughAdds a dry-run conversion preview and resume-recipe feature spanning session logic, CLI ( ChangesConversion Preview and Resume Recipe
Self-Update Mechanism
CI Credential Hardening and Provider Fixes
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant TUI as TUI Model
participant Session as PreviewConversion
participant Recipe as RecipeFor
User->>TUI: press x (first time)
TUI->>Session: previewConversion(row, target, options)
Session-->>TUI: conversionPreviewMsg(preview)
TUI->>TUI: store pendingConvert, show "press x again" hint
User->>TUI: press x (second time)
TUI->>TUI: startConvert() detects matching pendingConvert
TUI->>Session: convertRow(commit)
Session-->>TUI: write converted session
TUI->>Recipe: RecipeFor(new row)
Recipe-->>TUI: ResumeRecipe (command, storage location)
TUI-->>User: display resume recipe / select new session
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
showagent updateplus a release-build startup prompt that asks before installing a newer releasexnow previews first and confirms on the second press; CLI getsshowagent convert ... --dry-runshowagent infoand resume recipes so users can see the exact provider command and storage locationFixes #2
Fixes #3
CodeRabbit Follow-Up
.github/workflows/{ci,release}.yml:actions/checkoutnow usespersist-credentials: falseinternal/session/codex.go:codex deleteis bounded by a 30s context timeoutinternal/session/opencode.go: JSON decoding now ignores banner lines instead of grabbing stray[characters inside status textcmd/showagent/main.goand TUI empty state: no longer mention only Codex/Claudegolang.org/x/sys v0.47.0: verified as published on the Go proxy; no code change neededValidation
docker run --rm -v "$PWD":/src -w /src golang:1.25.9 sh -lc 'export PATH=/usr/local/go/bin:$PATH; go vet ./... && go test ./... -race && go build -buildvcs=false ./cmd/showagent'docker run --rm -v "$PWD":/src -w /src golangci/golangci-lint:v2.12.2 golangci-lint rundocker run --rm -v "$PWD":/src -w /src golang:1.25.9 sh -lc 'export PATH=/usr/local/go/bin:$PATH; for target in linux/amd64 darwin/amd64 darwin/arm64 windows/amd64; do GOOS=${target%/*} GOARCH=${target#*/} CGO_ENABLED=0 go build -buildvcs=false ./cmd/showagent; done'git diff --checkPost-Deploy Monitoring & Validation
SHA256SUMS, then runshowagent update --checkandshowagent updateagainst the new tag from an older local binary.Summary by CodeRabbit
New Features
convertcommand with--dry-runpreview mode and--scopeflag for trimming conversations before conversionxkey behavior: now previews conversion first, then confirms with another pressinfocommand to display session detailsupdatecommand to check and install updatesDocumentation