Skip to content

[codex] Show SFTP toolbar button#834

Merged
binaricat merged 1 commit into
mainfrom
codex/show-sftp-toolbar-button
Apr 25, 2026
Merged

[codex] Show SFTP toolbar button#834
binaricat merged 1 commit into
mainfrom
codex/show-sftp-toolbar-button

Conversation

@binaricat
Copy link
Copy Markdown
Owner

Summary

  • Move the SFTP opener out of the terminal overflow menu so it is directly visible in the terminal toolbar for SSH sessions.
  • Keep SFTP hidden for local and serial terminals where it does not apply.
  • Add a regression check that verifies SFTP stays visible before the overflow menu.

Why

Issue #829 reports that the high-frequency SFTP action is hidden behind the three-dot menu. This makes a common workflow harder to discover and slower to use.

Validation

  • npm run lint
  • npm run build
  • npm test

Closes #829

@binaricat binaricat marked this pull request as ready for review April 25, 2026 08:27
@binaricat
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

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

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

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

className={cn(buttonBase, status !== 'connected' && "opacity-50")}
aria-label={status === 'connected' ? t("terminal.toolbar.openSftp") : t("terminal.toolbar.availableAfterConnect")}
onClick={onOpenSFTP}
disabled={status !== 'connected'}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Keep disabled SFTP trigger hoverable for tooltip hint

When session status is connecting or disconnected, this button is rendered as disabled, and the shared button styles add disabled:pointer-events-none (components/ui/button.tsx), so the TooltipTrigger can’t receive hover/focus events. That means the icon-only control loses its only visible explanation (“Available after connect”), which regresses discoverability compared with the previous overflow entry that always showed text in this state.

Useful? React with 👍 / 👎.

@binaricat binaricat merged commit 324301e into main Apr 25, 2026
@binaricat binaricat deleted the codex/show-sftp-toolbar-button branch May 10, 2026 15:33
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.

希望不要隐藏高频使用的sftp

1 participant