Skip to content

fix(tmux): dual bar layout — tabs top, sessions bottom - #656

Merged
namastex888 merged 1 commit into
devfrom
fix/tmux-dual-bar-layout
Mar 18, 2026
Merged

namastex888 merged 1 commit into
devfrom
fix/tmux-dual-bar-layout

Conversation

@namastex888

Copy link
Copy Markdown
Contributor

Summary

  • Top bar (pane-border): system info — git branch, CPU, RAM, clock
  • Bottom line 0: native clickable window tabs
  • Bottom line 1: clickable session list + 🧞 Genie version (right-aligned)
  • Fix genie-update-check.sh to query @automagik/genie (not the old unscoped package)
  • Only show update notice when npm has a newer version (no false positives for dev builds)

Test plan

  • Verify two bars at bottom: tabs on top line, sessions on bottom line
  • Click window tabs to switch windows
  • Click sessions to switch sessions
  • Double-click status bar opens session tree picker
  • Top pane-border shows CPU/RAM/git/clock
  • Version check shows clean version when local is ahead of npm

…-border

- Top: pane-border with system info (git, CPU, RAM, clock)
- Bottom line 0: native clickable window tabs
- Bottom line 1: clickable session list + Genie version (right)
- Fix update-check to use @automagik/genie (scoped package)
- Only show update notice when npm version is actually newer
@coderabbitai

coderabbitai Bot commented Mar 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: Pro

Run ID: 00a02e7f-59c8-4e8d-91ef-2854a10bce79

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/tmux-dual-bar-layout
📝 Coding Plan
  • Generate coding plan for human review comments

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.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the user experience of the Genie TUI by introducing a more organized and informative tmux layout. It separates window management and session navigation into distinct, clickable status bars, while also providing crucial system information directly in the pane-border. Additionally, the update mechanism for Genie has been made more robust and accurate.

Highlights

  • Tmux Layout: Implemented a dual-bar layout for tmux, with native clickable window tabs on the top status line and a clickable session list with Genie version on the bottom status line.
  • Top Pane-Border Info: Configured the top pane-border to display system information including git branch, CPU usage, RAM usage, and current time.
  • Genie Update Check: Updated the genie-update-check.sh script to correctly query the @automagik/genie package on npm and refined the version comparison logic to only show update notices when a newer version is available, preventing false positives for development builds.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@namastex888
namastex888 merged commit d4c0c51 into dev Mar 18, 2026
6 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the tmux layout to a dual-bar design, separating window tabs from session information and moving system stats to the pane border. It also updates the genie-update-check.sh script to query the correct scoped npm package and improves the version comparison logic to prevent false positives for development builds. My review focuses on ensuring the portability of the shell scripts. I've added one comment regarding the version comparison method in the update check script to improve its compatibility across different environments.

Comment on lines +86 to +87
older=$(printf '%s\n%s\n' "$current_version" "$latest_version" | sort -V | head -1)
if [[ "$older" == "$current_version" ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The sort -V flag for version sorting is a GNU extension and may not be available or behave identically on all systems, particularly older macOS versions that use BSD sort. This could lead to incorrect version comparison results. Given that other scripts in this project handle OS-specific differences (e.g., for Linux vs. Darwin), consider adding a fallback for non-GNU environments or using a more portable version comparison method to ensure consistent behavior across platforms.

@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: 6793dd80cb

ℹ️ 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".

set -g pane-active-border-style "fg=#7b2ff7"
set -g pane-border-status off
set -g pane-border-status top
set -g pane-border-format "#[bg=#1a1a2e,fg=#e0e0e0]#[align=right]#[fg=#6c6c8a]#($HOME/.genie/scripts/genie-git.sh) #[fg=#0f3460]| #[fg=#00d2ff]CPU #($HOME/.genie/scripts/cpu-info.sh) #[fg=#0f3460]| #[fg=#00d2ff]RAM #($HOME/.genie/scripts/ram-info.sh) #[fg=#0f3460]| #[fg=#e0e0e0]%H:%M "

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid running shell metrics in per-pane border format

Moving #($HOME/.genie/scripts/genie-git.sh), cpu-info.sh, and ram-info.sh into pane-border-format makes tmux execute those commands for every pane border render, not once per status line. In multi-pane layouts this scales linearly with pane count and can noticeably increase shell-process churn and UI lag compared to the previous status-right placement, especially because the format is now attached to each pane via pane-border-status top.

Useful? React with 👍 / 👎.

namastex888 added a commit that referenced this pull request Mar 22, 2026
…-border (#656)

- Top: pane-border with system info (git, CPU, RAM, clock)
- Bottom line 0: native clickable window tabs
- Bottom line 1: clickable session list + Genie version (right)
- Fix update-check to use @automagik/genie (scoped package)
- Only show update notice when npm version is actually newer

Co-authored-by: Genie <genie@automagik.ai>
@namastex888
namastex888 deleted the fix/tmux-dual-bar-layout branch March 29, 2026 22:10
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