Skip to content

Clean up review diff accumulation flow#4

Merged
jsgrrchg merged 1 commit into
mainfrom
reviewdiff-cleaning
Apr 3, 2026
Merged

Clean up review diff accumulation flow#4
jsgrrchg merged 1 commit into
mainfrom
reviewdiff-cleaning

Conversation

@jsgrrchg
Copy link
Copy Markdown
Owner

@jsgrrchg jsgrrchg commented Apr 3, 2026

Summary

This removes the dead local hunk-accumulation path from the review UI and store.

  • removes and the accumulation flow
  • removes from
  • keeps as presentation logic:
    • exact hunks when available
    • LCS fallback only for visual rendering of diffs without
  • trims leftover public surface in (, )

Why

The canonical review semantics already live in the ActionLog. The old accumulation path duplicated resolution behavior and risked semantic drift.

This change keeps a single canonical resolution path while preserving transcript/chat diff rendering for legacy or non-hunk diffs.

Verification

Manual QA:

  • pending changes / edits panel
  • review tab
  • chat/thread diff rendering
  • open file from edits panel

Tests:

Result:

  • tests passing

@jsgrrchg jsgrrchg merged commit f07ac6e into main Apr 3, 2026
@jsgrrchg jsgrrchg deleted the reviewdiff-cleaning branch April 3, 2026 09:29
jsgrrchg added a commit that referenced this pull request Apr 5, 2026
spamsch pushed a commit to spamsch/NeverWrite that referenced this pull request May 20, 2026
De-duplicate descriptor (jsgrrchg#2):
Extract CLAUDE_TERMINAL_DESCRIPTOR and buildClaudeTerminalSetupStatus into
features/ai/utils/claudeTerminalRuntime.ts. chatStore and AIProvidersSettings
now share one definition with consistent copy.

Subscribe-based terminal ready (jsgrrchg#3):
Replace setInterval+setTimeout polling in waitForTerminalRunning with a
synchronous pre-check followed by useTerminalRuntimeStore.subscribe. No busy
loop, no 100ms lag, logs a warning on timeout.

Raise settle delay (jsgrrchg#4):
CLAUDE_TUI_SETTLE_MS 2000 → 3500 with a comment explaining the limitation
and what a proper fix would require.

Binary check cache (#1):
Module-level cache in checkClaudeCodeInstalled() so chatStore, TerminalSettings,
and AIProvidersSettings share one sh spawn rather than three.

Persist auto-selection (jsgrrchg#5):
When Claude Code is auto-selected on first launch (binary found, no prior
preference), persist it to AiPreferences so binary removal/reinstall doesn't
silently change the default on next start. ACP runtime auto-selection is NOT
persisted — only the Claude Code terminal selection is.
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