Skip to content

Add a local session proposal inbox for CLI and MCP - #7101

Merged
ComputelessComputer merged 3 commits into
mainfrom
cursor/session-proposals-inbox-4643
Aug 26, 2026
Merged

Add a local session proposal inbox for CLI and MCP#7101
ComputelessComputer merged 3 commits into
mainfrom
cursor/session-proposals-inbox-4643

Conversation

@ComputelessComputer

Copy link
Copy Markdown
Collaborator

Agents can clean a summary or memo today, but CLI and MCP are read-only, so they cannot save the result back into Anarlog.

This adds a local-only proposal inbox. CLI/MCP/chat can insert typed replacements. A human applies or declines them in desktop. There is no live write path, no TUI, and no apply tool on MCP.

What landed

  • New session_proposals table (additive, not CloudSync-enabled)
  • Kinds: summary_replace, memo_replace
  • Status: pendingapplied | declined
  • CLI: anarlog proposals create|list|show|decline
  • MCP: propose_summary_edit, propose_memo_edit, list_proposals, get_proposal, decline_proposal
  • Desktop: persist chat edits into the same table, review tab Apply/Decline, session banner for pending CLI/MCP proposals
  • Stale apply is rejected when the target document updated_at moved after the proposal was created
  • Hosted MCP stays read-only

Out of scope

  • Transcript word patches (Phase 2)
  • Apply via CLI or MCP
  • Auto-starting any TUI

Verification

  • pnpm -F desktop typecheck
  • Desktop vitest for proposal/chat/edit/banner/query tests
  • pnpm exec oxlint --quiet --format=github apps/desktop/src/
  • cargo test --locked -p agent-access -p anarlog-cli -p db-app -p db-core --lib
  • cargo clippy --locked -p agent-access -p anarlog-cli -p db-app -p db-core --all-targets --no-deps -- -D warnings
  • Lingui catalogs extracted and compiled
  • node scripts/publish-anarlog-skill.mjs --check

Could not run the desktop app in this environment to click Apply/Decline end to end. Browser/desktop UI verification is still needed.

Open in Web Open in Cursor 

Agents can stage summary or memo replacements without writing the meeting. Desktop review applies or declines them; hosted MCP stays read-only.

Co-authored-by: John Jeong <ComputelessComputer@users.noreply.github.com>
@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for anarlog canceled.

Name Link
🔨 Latest commit 22e5113
🔍 Latest deploy log https://app.netlify.com/projects/anarlog/deploys/6a8e452a4a0b5d0008852a16

cursoragent and others added 2 commits August 26, 2026 01:42
Desktop tsconfig targets ES2020, so Object.hasOwn is not on ObjectConstructor. Use the existing hasOwnProperty.call pattern so js_ci typecheck passes.

Co-authored-by: John Jeong <ComputelessComputer@users.noreply.github.com>
The test mutated the old "read-only" phrase, which this PR removed. Use a sentinel that still exists so the notEqual check detects non-link drift again.

Co-authored-by: John Jeong <ComputelessComputer@users.noreply.github.com>
@ComputelessComputer
ComputelessComputer marked this pull request as ready for review August 26, 2026 02:18

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 22e5113. Configure here.

type="button"
size="sm"
variant="outline"
onClick={() => resolve(false)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chat card hides apply failures

Medium Severity

Chat card Apply/Decline calls applyProposalReview / declineProposalReview with void and no error handling. Stale-apply and other failures are swallowed on the card, while the review tab surfaces them. Users can click Apply, see no feedback, and leave the proposal pending.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 22e5113. Configure here.

@ComputelessComputer
ComputelessComputer merged commit 2f0a6d9 into main Aug 26, 2026
25 checks passed
@ComputelessComputer
ComputelessComputer deleted the cursor/session-proposals-inbox-4643 branch August 27, 2026 06:32
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.

2 participants