Skip to content

feat(terminal): support custom SSH ports#1451

Merged
simonjcarr merged 17 commits into
mainfrom
feat/ssh-connect-port
May 16, 2026
Merged

feat(terminal): support custom SSH ports#1451
simonjcarr merged 17 commits into
mainfrom
feat/ssh-connect-port

Conversation

@simonjcarr
Copy link
Copy Markdown
Collaborator

Summary

  • add SSH port inputs to terminal connection launchers with port 22 as the default
  • persist the host-specific port after a successful SSH connection
  • send the selected port to ingest and validate it before dialing SSH

Validation

  • pnpm --dir apps/web type-check
  • pnpm --dir apps/web lint (warnings only, existing project warnings remain)
  • pnpm --dir apps/web test:unit
  • Go tests not run locally: go/gofmt are not installed in this environment

@simonjcarr simonjcarr merged commit 36872a6 into main May 16, 2026
20 checks passed
@simonjcarr simonjcarr deleted the feat/ssh-connect-port branch May 16, 2026 20:20
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: 0898b203b2

ℹ️ 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 on lines +404 to +407
if (defaults.length > 0 && hostRows.length > 0) {
await tx.insert(alertRules).values(
hostRows.flatMap((host) => cloneMetricDefaultsForHost(defaults, instanceId, host.id)),
)
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 Batch host default inserts to avoid PostgreSQL parameter limit

Building a single INSERT ... VALUES from hostRows.flatMap(...) can exceed PostgreSQL's bind-parameter limit in larger instances (rows = hosts × defaults, with multiple bound columns per row), causing replaceAllHostMetricAlertsWithGlobalDefaults to fail for high host counts and return a generic error instead of applying defaults. This is introduced here because the all-host path now attempts one monolithic insert; chunking inserts (or inserting per host/default batch) would prevent scale-dependent failures.

Useful? React with 👍 / 👎.

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