Skip to content

Add plan viewer/editor with session-scoped KV caching and line-based editing#4

Merged
chriswritescode-dev merged 6 commits intomainfrom
opencode/loop-kv-line-editing-plan-caching-audit-plan-reference
Apr 8, 2026
Merged

Add plan viewer/editor with session-scoped KV caching and line-based editing#4
chriswritescode-dev merged 6 commits intomainfrom
opencode/loop-kv-line-editing-plan-caching-audit-plan-reference

Conversation

@chriswritescode-dev
Copy link
Copy Markdown
Owner

Summary

Implements plan viewer and editor TUI dialogs with session-scoped KV store caching, line-based editing capabilities, and streamlined approval flow.

Changes

  • Plan Viewer/Editor: New TUI dialogs for viewing and editing cached plans
  • Session-scoped KV caching: Plans cached under session-scoped keys with TTL
  • Line-based editing: Support for offset/limit and append mode in KV store
  • Documentation: Added three screenshots showing plan viewer, editor, and sidebar indicator
  • New tool: memory-kv-search for searching KV values by regex

Files

  • README.md - Updated with plan viewer/editor documentation
  • docs/images/ - Added 3 WebP screenshots
  • src/tui.tsx - Plan viewer and editor dialog components
  • src/tools/kv.ts - Added memory-kv-search tool
  • src/tools/plan-approval.ts - Streamlined approval flow
  • test/kv-lines.test.ts - New tests for line-based KV operations

…treamlined approval flow

- Change plan storage from plan:current to session-scoped plan:{sessionID} keys
- Remove automatic plan surfacing in memory-kv-set tool output
- Add PlanViewerDialog component for viewing/editing plans in TUI sidebar
- Update plan approval hooks to read plan from KV and pass to execution context
- Add memory-kv-set external dependency to build config
- Clean up test suite by removing surfacing tests
@chriswritescode-dev chriswritescode-dev merged commit 248f5fe into main Apr 8, 2026
2 checks passed
@chriswritescode-dev chriswritescode-dev deleted the opencode/loop-kv-line-editing-plan-caching-audit-plan-reference branch April 8, 2026 21:46
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