Skip to content

new rpc call to get focused block data from a tab#2833

Open
sawka wants to merge 1 commit intomainfrom
sawka/focus-data
Open

new rpc call to get focused block data from a tab#2833
sawka wants to merge 1 commit intomainfrom
sawka/focus-data

Conversation

@sawka
Copy link
Member

@sawka sawka commented Feb 6, 2026

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 6, 2026

Walkthrough

This pull request adds a new RPC command GetFocusedBlockData to retrieve metadata about the currently focused block. The implementation spans frontend and backend: the TypeScript frontend introduces a handler method that queries the global store for the focused block and conditionally augments the response with job status, connection status, and terminal-specific information (shell integration status and last command). The backend exposes a new interface method and struct type to support this command. Corresponding TypeScript types and client API methods are added to enable frontend-backend communication.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to assess relevance to the changeset. Add a pull request description explaining the purpose, use case, and any relevant context for this new RPC call.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a new RPC call to retrieve focused block data from a tab.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sawka/focus-data

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 and usage tips.

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