Skip to content

refactor(code-index): extract interface state and webview routing - #1607

Open
WebMad wants to merge 2 commits into
Zoo-Code-Org:mainfrom
WebMad:refactor/code-index-next-step
Open

refactor(code-index): extract interface state and webview routing#1607
WebMad wants to merge 2 commits into
Zoo-Code-Org:mainfrom
WebMad:refactor/code-index-next-step

Conversation

@WebMad

@WebMad WebMad commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a feature-owned CodeIndexState read model and expose snapshot/event APIs through CodeIndexController
  • introduce CodeIndexScope so the manager, state manager, and controller share a workspace lifetime
  • extract code-index webview commands from the monolithic handler into CodeIndexWebviewMessageHandler
  • add WebviewMessageHandlerRegistry and construct one registry per ClineProvider
  • route complete code-index state updates to the webview through the controller

Verification

  • repository lint passed via the commit hook
  • repository type-check passed via the push hook
  • focused Vitest suites passed: 7 files, 205 tests

Dependency

This PR is based on #1594 and should be reviewed/merged after it.

…g#1594)

Separate workspace resolution and instance ownership from CodeIndexManager. Update consumers, aggregate disposal failures, and add focused registry and cleanup tests. Lifecycle cancellation is deferred from this PR.
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review-active

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: ff29d6c0-9d48-4433-ba72-78faede42d0d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Review status

Thanks for contributing. This comment tracks the review sequence and the next action.

Current step: Fix the failing required CI checks; awaiting-maintainer requires CI and automated review completion.

Review-state labels are managed by this workflow; do not edit them manually.

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

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