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 Prev/Next step navigation buttons and a dynamic step indicator to the XRay Gradio UI, wire their events to keyboard-like navigation, expose the Gradio server to public when configured, and adjust the episode info header to remove the explicit Step line.

Why are these changes being made?

Enhance usability by enabling quick step navigation and a live step indicator; allow public access when configured without altering core behavior. Minor UI header tweak aligns with the updated navigation display.

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.

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