Skip to content

feat(tui): group and sort the Agents sidebar from Appearance - #230

Merged
senamakel merged 33 commits into
mainfrom
sidebar-grouping
Aug 8, 2026
Merged

feat(tui): group and sort the Agents sidebar from Appearance#230
senamakel merged 33 commits into
mainfrom
sidebar-grouping

Conversation

@senamakel

@senamakel senamakel commented Aug 7, 2026

Copy link
Copy Markdown
Member

What

Settings › Appearance gains an Agents sidebar group with two controls:

  • Group byhost (default, drawn only once a second host exists) · path · harness · none
  • Sort bycreated (default) · recent · name

Both apply live and persist to [appearance] as sidebarGrouping / sidebarSort.

Grouping only moves the section headers: every agent keeps its own sessions
under it, so no row disappears whichever way it is set. Sorting applies at both
levels the eye reads — the agents in a section, and the sessions under an agent
(recent is last output / last task event; created is oldest-first, which is
exactly the order the rail used before this existed).

How

  • medulla::config::{SidebarGrouping, SidebarSort} on AppearanceConfig.
  • New ui/app/rail/organize.rs — the sectioning and ordering rules, kept apart
    from the assembly in rail/mod.rs, which stays about what exists.
  • New RailRow::Group header row, so nothing downstream has to guess whether a
    ▸ ~/work/medulla header names a machine.
  • Settings rows, cycling, and persistence in ui/app/appearance.rs.

Validation

  • cargo test (2500+ tests, all green), including new rail::organize_tests
    (grouping/sorting, plus a property that no grouping loses an agent),
    feature_settings (the two rows cycle, wrap, and persist), and config
    round-trip tests.
  • cargo clippy --all-targets -- -D warnings, cargo fmt --check.
  • Driven under tmux: the Appearance page renders the new group, and switching to
    path sections the sidebar live.

Summary by CodeRabbit

  • New Features

    • Added Agents sidebar settings for grouping by host, path, harness, or no grouping.
    • Added sorting options by creation order, recent activity, or name.
    • Added section headers and improved organization of agents and sessions.
    • Added live Appearance settings with saved preferences.
  • Bug Fixes

    • Improved sidebar paging while preserving selected tasks and active workflows.
    • Prevented grouping headers from being selectable.
    • Improved cursor placement when sidebar items disappear.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR adds Agents-sidebar grouping and sorting configuration. It exposes the settings through appearance controls, persists them, organizes rail sections and sessions, renders group headers, preserves selection behavior, and adds coverage for organization and paging.

Changes

Agents sidebar configuration

Layer / File(s) Summary
Sidebar configuration contract
config.example.toml, gitbooks/developers/configuration.md, src/sdk/src/config/...
Adds grouping and sorting enums, defaults, serialization, public exports, configuration documentation, and parsing tests.
Appearance settings controls
src/tui/src/ui/app/appearance.rs, src/tui/src/ui/app/render/settings/appearance_usage.rs, src/tui/tests/feature_settings.rs
Adds selectable sidebar controls, cycling behavior, rendered values, TOML persistence, and integration tests.

Agents rail organization

Layer / File(s) Summary
Rail grouping and sorting
src/tui/src/ui/app/rail/organize/*
Builds host, path, harness, and ungrouped sections. It orders agents and sessions by creation time, recent activity, or name. Tests cover labels, fallbacks, ordering, and activity metadata.
Grouped rail rows and paging
src/tui/src/ui/app/rail/*, src/tui/src/ui/app/render/sessions/rail/*
Adds structural group rows, section-based rail flattening, non-selectable behavior, grouped rendering, task retention, overflow handling, cursor recovery, and rail tests.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant AppearanceSettings
  participant AppearanceConfig
  participant RailOrganizer
  participant RailRenderer
  Operator->>AppearanceSettings: select grouping or sorting
  AppearanceSettings->>AppearanceConfig: update and persist setting
  AppearanceConfig->>RailOrganizer: provide sidebar configuration
  RailOrganizer->>RailRenderer: return ordered sections and sessions
  RailRenderer-->>Operator: render grouped Agents sidebar
Loading

Possibly related PRs

Poem

I’m a rabbit with a tidy rail,
Grouped by path or hosty trail.
Sort by name or recent cheer,
Keep running tasks safely near.
Settings save what I choose—
Hop, hop, no rows to lose!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding grouping and sorting controls for the Agents sidebar in Appearance settings.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5594d653f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs
Comment thread src/tui/src/ui/app/rail/organize/mod.rs Outdated
@senamakel senamakel self-assigned this Aug 7, 2026
senamakel and others added 2 commits August 7, 2026 19:29
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tui/src/ui/app/rail/organize_tests.rs`:
- Around line 143-152: Add tests in the existing organize-tests module covering
SidebarSort::Recent for agent ordering via sort_agents and section ordering via
order_sections. Use deterministic fixtures with distinct activity timestamps,
including agents and path or harness groups, and assert the expected
recent-first ordering while preserving existing session coverage.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d6303295-ba0e-4a89-a2b9-ab177eb5f513

📥 Commits

Reviewing files that changed from the base of the PR and between 274b6ef and d848955.

📒 Files selected for processing (17)
  • config.example.toml
  • gitbooks/developers/configuration.md
  • src/sdk/src/config/appearance/mod.rs
  • src/sdk/src/config/appearance/types.rs
  • src/sdk/src/config/mod.rs
  • src/sdk/src/config/types_tests.rs
  • src/tui/src/ui/app/appearance.rs
  • src/tui/src/ui/app/rail/cursor.rs
  • src/tui/src/ui/app/rail/mod.rs
  • src/tui/src/ui/app/rail/organize.rs
  • src/tui/src/ui/app/rail/organize_tests.rs
  • src/tui/src/ui/app/rail/tests.rs
  • src/tui/src/ui/app/rail/types.rs
  • src/tui/src/ui/app/render/agents/rail/mod.rs
  • src/tui/src/ui/app/render/agents/summary.rs
  • src/tui/src/ui/app/render/settings/appearance_usage.rs
  • src/tui/tests/feature_settings.rs

Comment thread src/tui/src/ui/app/rail/organize/tests.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8489551ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs
Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1e2adaacfc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs
Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Comment thread src/tui/src/ui/app/rail/organize/mod.rs Outdated
The organize step now flattens host sections before applying path or harness grouping, and sorts by declaration order when the sidebar sort is set to Created. This prevents agents from different hosts from being interleaved in a way that breaks the intended declaration order.

Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe6323187a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

hidden: group.hidden,

P2 Badge Recompute the overflow count after retaining tasks

When a task beyond task_limit is retained because it is anchored or has an active workflow run, group.hidden still includes that now-visible task. The rail therefore overstates +N more, and if every nominally hidden task is retained it presents an overflow action even though no task is actually omitted; derive the hidden count and overflow state from the filtered task set instead of reusing the fold's pre-retention values.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af0ee14e81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs Outdated
Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tui/src/ui/app/rail/merge_tests.rs`:
- Around line 169-188: Update the test setup around owner and push_group to
assign distinct last_at timestamps to the tasks, then invoke sort_sessions with
SidebarSort::Recent before calling push_group. Preserve the existing
anchor-retention assertions while ensuring the test exercises the Recent sorting
path.

In `@src/tui/src/ui/app/rail/mod.rs`:
- Around line 639-705: Move the task paging and rendering logic from push_group
into a cohesive child module such as paging.rs, including visible-task
selection, pinned-anchor retention, workflow-run retention, overflow
calculation, and row emission. Keep mod.rs limited to module documentation,
child-module declarations, re-exports, and a thin wiring call to the new
implementation, preserving push_group behavior and its existing inputs and
outputs.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 09a1b6f7-3cdb-4cd9-bda1-1502b0ef9724

📥 Commits

Reviewing files that changed from the base of the PR and between d848955 and a878298.

📒 Files selected for processing (5)
  • src/tui/src/ui/app/rail/merge_tests.rs
  • src/tui/src/ui/app/rail/mod.rs
  • src/tui/src/ui/app/rail/organize/mod.rs
  • src/tui/src/ui/app/rail/organize/tests.rs
  • src/tui/src/ui/app/rail/organize/types.rs

Comment thread src/tui/src/ui/app/rail/merge_tests.rs Outdated
Comment thread src/tui/src/ui/app/rail/mod.rs Outdated
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ba749c3e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs Outdated
Comment thread src/tui/src/ui/app/rail/organize/mod.rs Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tui/src/ui/app/rail/paging/tests.rs`:
- Around line 84-89: Update the test around split_fold to match its current
return contract: assign the result directly to groups rather than destructuring
a tuple, then replace the nonexistent group.visible_tasks assertion with a check
that group.sessions.len() equals 10. Preserve the existing hidden and overflow
assertions.

In `@src/tui/src/ui/app/render/sessions/rail/mod.rs`:
- Around line 270-275: Move rail row rendering, including rail_row_line and its
related formatting logic, from mod.rs into a focused child module such as
rows.rs. Keep mod.rs limited to module documentation, declarations, and wiring,
and update references/imports so the existing rendering behavior remains
unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fcf7db7a-3f02-47f6-9721-89d2235c4b84

📥 Commits

Reviewing files that changed from the base of the PR and between 5ffa33f and cca1e7a.

📒 Files selected for processing (13)
  • config.example.toml
  • gitbooks/developers/configuration.md
  • src/tui/src/ui/app/rail/cursor.rs
  • src/tui/src/ui/app/rail/merge_tests.rs
  • src/tui/src/ui/app/rail/mod.rs
  • src/tui/src/ui/app/rail/organize/mod.rs
  • src/tui/src/ui/app/rail/organize/tests.rs
  • src/tui/src/ui/app/rail/paging/tests.rs
  • src/tui/src/ui/app/rail/tests.rs
  • src/tui/src/ui/app/rail/types.rs
  • src/tui/src/ui/app/render/sessions/rail/mod.rs
  • src/tui/src/ui/app/render/settings/appearance_usage.rs
  • src/tui/tests/feature_settings.rs
🚧 Files skipped from review as they are similar to previous changes (8)
  • config.example.toml
  • gitbooks/developers/configuration.md
  • src/tui/src/ui/app/rail/cursor.rs
  • src/tui/src/ui/app/render/settings/appearance_usage.rs
  • src/tui/tests/feature_settings.rs
  • src/tui/src/ui/app/rail/organize/mod.rs
  • src/tui/src/ui/app/rail/organize/tests.rs
  • src/tui/src/ui/app/rail/mod.rs

Comment thread src/tui/src/ui/app/rail/paging/tests.rs Outdated
Comment thread src/tui/src/ui/app/render/sessions/rail/mod.rs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cca1e7a729

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/organize/mod.rs
senamakel and others added 4 commits August 8, 2026 01:35
The rail now builds agent group sessions directly from ordered lane tasks instead of flattening pre-assembled agent rows, which simplifies the split_fold logic and removes the need for the offers_session parameter in paging. This change also introduces a visible_tasks field to track how many task-backed sessions the lane pager reveals, and replaces the Lane overflow row with a dedicated Overflow variant.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The rail row rendering functions were moved from the main rail module into the dedicated rows module to keep related formatting logic together. The test call site was updated to pass the new empty lanes argument.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Adds a regression test verifying that paging applies name sorting before selecting which tasks are visible, ensuring the correct task appears when the group has hidden and overflow tasks.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfd468ce7a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/sdk/src/config/appearance/types.rs
senamakel and others added 2 commits August 8, 2026 01:59
Updated the module-level documentation to more accurately describe the types as covering appearance configuration for resource displays and the Agents-sidebar layout, rather than only resource display formats.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb9d30797a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/paging/mod.rs
When retaining a task consumes the final hidden row, the overflow anchor can no longer be retained. Previously, resolving by the old offset would select the newly revealed task; now the cursor relocates to the lane's first remaining row, which is stable as sessions appear beneath it. This also removes the now-unused `agent_rows_in` helper and `push_sessions` function.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba6c84d631

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/rail/types.rs
senamakel and others added 2 commits August 8, 2026 02:47
The module documentation now reflects the addition of a grouping heading between hosts and sessions in the row taxonomy, updating the description of the tree shape and the list of possible row types.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c314b2e8c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tui/src/ui/app/appearance.rs
Comment thread src/tui/src/ui/app/rail/mod.rs
The rail previously dropped a second declared host from the shared host tree once it was no longer the only remote machine. The appearance preferences now control grouping and ordering of the Agents sidebar, and the host tree retains all declared hosts so the grouping and sort controls can operate on the complete set. Tests were updated to verify the second declared host remains present alongside the local machine.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/tui/src/ui/app/rail/tests.rs`:
- Around line 310-321: Update the assertions in the host-tree test to use the
computed local-host flag from the hosts collection. Explicitly assert that at
least one entry has is_local set to true, while retaining the existing
studio-host and minimum-length assertions.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 225c5468-c151-4b89-8fb3-0762714a1c57

📥 Commits

Reviewing files that changed from the base of the PR and between cca1e7a and 7ec197a.

📒 Files selected for processing (15)
  • src/sdk/src/config/appearance/types.rs
  • src/tui/src/ui/app/appearance.rs
  • src/tui/src/ui/app/input/mod.rs
  • src/tui/src/ui/app/input/nav.rs
  • src/tui/src/ui/app/rail/cursor.rs
  • src/tui/src/ui/app/rail/cursor_tests.rs
  • src/tui/src/ui/app/rail/merge_tests.rs
  • src/tui/src/ui/app/rail/mod.rs
  • src/tui/src/ui/app/rail/organize/tests.rs
  • src/tui/src/ui/app/rail/paging/mod.rs
  • src/tui/src/ui/app/rail/paging/tests.rs
  • src/tui/src/ui/app/rail/tests.rs
  • src/tui/src/ui/app/rail/types.rs
  • src/tui/src/ui/app/render/sessions/rail/mod.rs
  • src/tui/src/ui/app/render/sessions/rail/rows.rs
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/tui/src/ui/app/rail/merge_tests.rs
  • src/tui/src/ui/app/rail/organize/tests.rs
  • src/tui/src/ui/app/appearance.rs
  • src/sdk/src/config/appearance/types.rs
  • src/tui/src/ui/app/rail/types.rs
  • src/tui/src/ui/app/rail/mod.rs

Comment thread src/tui/src/ui/app/rail/tests.rs
senamakel and others added 2 commits August 8, 2026 03:39
The test now verifies that the second declared host is not local and that a local machine remains in the shared tree, improving coverage of the host filtering behavior.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The test previously checked that the second declared host was not local, but the assertion only needs to verify the host remains in the tree. The kind check was redundant and has been removed to focus the test on tree membership.

Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@senamakel
senamakel merged commit 9140df0 into main Aug 8, 2026
8 checks passed
@senamakel
senamakel deleted the sidebar-grouping branch August 8, 2026 01:02
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