Skip to content

Conversation

amanjaiswal73892
Copy link
Collaborator

@amanjaiswal73892 amanjaiswal73892 commented Oct 3, 2025

Adds step navigation buttons and fix keyboard shortcuts.

Screenshot 2025-10-03 at 8 26 14 PM

Description by Korbit AI

What change is being made?

Add a keyboard shortcut and UI navigation for stepping through xray results by introducing Granadio head content with a step navigation bar (Previous/Next buttons and a step indicator) and corresponding navigation handlers.

Why are these changes being made?

Enhance user navigation by enabling quick step-by-step traversal using Ctrl/Cmd + Arrow keys and by providing visible step context through a step indicator and dedicated navigation buttons. This streamlines reviewing multi-step results without relying solely on other UI controls.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Readability Global Variable Usage Reduces Readability ▹ view
Files scanned
File Path Reviewed
src/agentlab/analyze/agent_xray.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment on lines 554 to 557
def format_step_indicator(step_id):
global info
if not step_id or not info.exp_result or not info.exp_result.steps_info:
return "Step 0/0"
Copy link

Choose a reason for hiding this comment

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

Global Variable Usage Reduces Readability category Readability

Tell me more
What is the issue?

The function uses a global variable which makes the code harder to understand and maintain.

Why this matters

Global state makes code flow harder to follow and increases the likelihood of bugs when the global state changes unexpectedly.

Suggested change ∙ Feature Preview
def format_step_indicator(step_id: StepId, info: Info) -> str:
    if not step_id or not info.exp_result or not info.exp_result.steps_info:
        return "Step 0/0"
Provide feedback to improve future suggestions

Nice Catch Incorrect Not in Scope Not in coding standard Other

💬 Looking for more details? Reply to this comment to chat with Korbit.

recursix
recursix previously approved these changes Oct 3, 2025
Copy link
Collaborator

@recursix recursix left a comment

Choose a reason for hiding this comment

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

Can you validate that the shortcut shit -> and shift <- still works for next/prev. Or is it cmd -> cmd <-. If they still work, can you add indication around these new buttons that this is the shortcut.

@amanjaiswal73892 amanjaiswal73892 merged commit 8adea3b into main Oct 14, 2025
6 checks passed
@amanjaiswal73892 amanjaiswal73892 deleted the improve-xray branch October 14, 2025 15:39
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