Repository navigation
Fix MaxListenersExceededWarning with singleton PTY dispatcher - #6
Merged
Merged
Conversation
Replace per-transport ipcRenderer.on('pty:data'/'pty:exit') listeners
with a single global dispatcher that routes events by PTY ID. This
keeps the IPC listener count at exactly 2 (one per channel) regardless
of how many panes, tabs, or React strict mode re-mounts occur.
Previously each transport registered its own global IPC listener and
filtered by ID, causing the count to spike past the default max of 10
during React strict mode's mount/unmount/re-mount cycle with multiple
tabs.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
3 of 7 tasks
Jinwoo-H
added a commit
that referenced
this pull request
May 4, 2026
…reamble+ask, QoL (#1403) * feat(orchestration): transport keepalive + delivered_at split for check --wait Implements the four §3 fixes from the check-wait design doc: - §3.1 Transport keepalive: long-poll RPCs (orchestration.check --wait) emit `{"_keepalive":true}` frames every 10s so neither server nor client tears the socket down on idle. A `longPoll` admission counter capped at 16 fails fast with `runtime_busy` when saturated; an AbortController wired through the RPC dispatcher cancels the inner waiter the moment the socket closes. - §3.2 delivered_at split: push-on-idle now stamps `delivered_at` instead of flipping `read`, so the check caller remains the sole consumer of its queue. Adds a synchronous idempotent schema migration that hard-fails on error. - §3.3 inbox/check parity: `orchestration inbox --terminal <handle>` and `orchestration check --all` agree on the same rows (sequence DESC, no mark-read). `check --unread=false` kept for one release as a compat shim. - §3.4 CLI heartbeat: `orca orchestration check --wait` emits JSON heartbeat lines to stderr every 15s so Claude Code's Bash tool sees continuous output and doesn't auto-background the subprocess. Tests: extends runtime-rpc, orca-runtime, envelope-schema, orchestration method, and formatter suites; adds a subprocess test that spawns the built CLI and verifies stderr line-flushing, heartbeat cadence, and stdout cleanliness end-to-end. Co-authored-by: Orca <[email protected]> * feat(orchestration): preamble rules + heartbeat schema - Preamble (#7, #15, #9): worker_done body ("3-sentence summary" + reportPath), BEHAVIOR RULE #1 forbidding AskUserQuestion, heartbeat every 5 minutes with taskId+dispatchId payload, AFTER YOU SEND grace window. - Schema v2 migration: adds 'heartbeat' to messages.type CHECK, adds dispatch_contexts.last_heartbeat_at, gated by user_version PRAGMA with transactional rebuild + explicit CREATE INDEX to avoid silent perf regress. - DB helpers: recordHeartbeat (dispatched-only), getStaleDispatches, getThreadMessagesFor (thread+handle scoped for ask). Co-authored-by: Orca <[email protected]> * feat(orchestration): coordinator heartbeat + stale detector Handle incoming 'heartbeat' messages by calling recordHeartbeat keyed on payload.dispatchId (strict — log-and-skip if missing, no taskId fallback so a straggler heartbeat from a previously-failed dispatch cannot mask a hung retry per §5.3.4). On every tick after the 10-minute threshold, emit one log per stale dispatched row — no auto-fail. Also threads dispatchId through buildDispatchPreamble so workers can attribute their heartbeats back to the correct dispatch context. Co-authored-by: Orca <[email protected]> * feat(orchestration): orca orchestration ask verb Adds a CLI verb that sends a decision_gate message and blocks on the coordinator's reply, scoped to the outbound message's thread. Group addresses (@ALL, @idle, …) are rejected — fan-out questions must use send --type decision_gate explicitly. --json emits bare single-line JSON (bypassing printResult) so workers can pipe `orca orchestration ask … --json | jq -r .answer` without unwrapping an RPC envelope; human mode prints just the answer. On timeout the verb exits 1 and returns {answer: null, timedOut: true}. This is the CLI surface BEHAVIOR RULE #1 in the dispatch preamble points workers at instead of AskUserQuestion. Co-authored-by: Orca <[email protected]> * feat(orchestration): QoL bundle — preamble visibility, status enum, dispatch cross-ref, inbox --full Addresses four items from ORCHESTRATOR_FEEDBACK: - #5 preamble visibility: `dispatch-show --preamble` regenerates the preamble text for a task; `dispatch --inject --dry-run` previews without mutating state; `dispatch --return-preamble` echoes the injected preamble in the JSON response so coordinators can audit what a worker received. - #6 status enum validation: CLI rejects unknown `task-update --status` values with `invalid status '<x>', expected one of: pending, ready, dispatched, completed, failed, blocked` before the RPC's generic Zod message. Valid statuses are listed under Notes in `task-update --help`. - #13 task-list dispatch cross-ref: `task-list --json` now includes `assignee_handle` and `dispatch_id` for tasks in status=dispatched via a read-only LEFT JOIN on dispatch_contexts. Non-dispatched rows keep their legacy shape so existing consumers are unaffected. - #14 inbox body visibility: `inbox --full` prints body + payload verbatim; default output is unchanged (id/from/to/subject only). No DB migrations; join-only change on dispatch_contexts so the sibling preamble PR's `last_heartbeat_at` column addition will not conflict. Co-authored-by: Orca <[email protected]> * fix(worktree): prevent stale-base worktree creation and dispatch Addresses feedback #16 per DESIGN_DOC_STALE_BASE_FIX.md §0. Four v1 components coordinated by a single shared fetch cache on the runtime: 1. Concurrent-fetch-with-gate in UI create path: `createLocalWorktree` fires `git fetch` BEFORE the suffix loop / PR probe / path resolution, then awaits right before `addWorktree` so the new branch always spawns from a fresh remote tip. Renderer sees a two-phase spinner via the new `createWorktree:progress` IPC event. The cache is a `Map<repoPath::remote, Promise<void>>` + 30s success-only timestamp on `OrcaRuntimeService` (§7.1 — shared with dispatch). 2. Dispatch pre-flight drift guard in `Coordinator.dispatchTask`: probes `rev-list --left-right --count` against the target worktree and silently returns (preserves `ready`, no circuit-breaker burn) when `behind > 20` unless the task spec carries `allow-stale-base: true`. Parsing strips the flag so it never leaks into the worker's `--- TASK ---` block. 3. Preamble drift section: populated only when dispatch detected drift. Workers see `--- BASE DRIFT ---` with the N-most-recent subjects they don't have, so they can pull them in before running. 4. §3.3 Lifecycle: `.finally()` evicts Map entries on BOTH success and rejection; timestamp is written ONLY on success. Prevents a single DNS hiccup from wedging every future create on the repo until restart, and keeps the freshness window honest. Defers the DB `allow_stale_base` column (§0.2) and the create-time warn toast; both can layer in later without migration. Tests: 35 new/updated unit tests covering drift preamble, dispatch refusal, spec-text flag parsing, fetch Map eviction after rejection, freshness-window short-circuit, and concurrent-caller serialization. Co-authored-by: Orca <[email protected]> * test(orchestration): seed v2 DB in migration hard-fail test After consolidating the schema bump, fresh DBs are initialized directly at v3 via createTables(), so the v2→v3 ALTER TABLE is skipped on new installs and the prior test's stub never fired. Seed a v2-shape file on disk so the guarded ALTER actually runs and the "simulated migration failure" stub propagates as intended. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
brennanb2025
added a commit
that referenced
this pull request
May 11, 2026
While ORCA_FEATURE_REMOTE_AGENT_HOOKS is off, strip ORCA_PANE_KEY, ORCA_TAB_ID, and ORCA_WORKTREE_ID from the SSH spawn env before forwarding to the relay. The renderer unconditionally sets these on every spawn (see pty-connection.ts), so without a guard a relay build that begins consuming them on the remote would post hook events Orca cannot route. When the flag is ON, the three vars cross the wire so the relay-side pty-handler captures the renderer-supplied paneKey and the agent CLI inside the PTY can attribute hook posts to the right Orca pane. The local hook server's PORT/TOKEN/ENV/VERSION/ENDPOINT are NEVER injected on the SSH path — they describe Orca's loopback and would leak a bearer token across the wire for no functional benefit. The relay's own hook server publishes its own coords server-side via PtyHandler env augmenters (commit #4). Adds two regression tests over `pty:spawn` exercising both flag states. See docs/design/agent-status-over-ssh.md §3, §8 (commit #6). Co-authored-by: Orca <[email protected]>
brennanb2025
added a commit
that referenced
this pull request
May 14, 2026
While ORCA_FEATURE_REMOTE_AGENT_HOOKS is off, strip ORCA_PANE_KEY, ORCA_TAB_ID, and ORCA_WORKTREE_ID from the SSH spawn env before forwarding to the relay. The renderer unconditionally sets these on every spawn (see pty-connection.ts), so without a guard a relay build that begins consuming them on the remote would post hook events Orca cannot route. When the flag is ON, the three vars cross the wire so the relay-side pty-handler captures the renderer-supplied paneKey and the agent CLI inside the PTY can attribute hook posts to the right Orca pane. The local hook server's PORT/TOKEN/ENV/VERSION/ENDPOINT are NEVER injected on the SSH path — they describe Orca's loopback and would leak a bearer token across the wire for no functional benefit. The relay's own hook server publishes its own coords server-side via PtyHandler env augmenters (commit #4). Adds two regression tests over `pty:spawn` exercising both flag states. See docs/design/agent-status-over-ssh.md §3, §8 (commit #6). Co-authored-by: Orca <[email protected]>
1 of 2 tasks
AmethystLiang
added a commit
that referenced
this pull request
Jul 19, 2026
Applies the code-review findings for the reworked pairing UI: - Clear a displayed Relay QR on sign-out in both MobilePage and MobilePane (the rework dropped the wasSignedInRef watcher, leaving a stale Relay QR next to a "sign in required" prompt). Anywhere stays selected; the QR re-mints as local-only. [#1, #3] - Extract useMobilePairingConnectionMode so both panes resolve the saved preference identically instead of duplicating the state + resync effect. [#6] - Delete ~24 i18n keys the rework left unreferenced; sync locale catalogs to parity. [#4] - Give the connection-path radiogroup roving tabindex + arrow-key nav and document why it diverges from SettingsSegmentedControl. [#7] - Add MobilePane.test.tsx (previously untested safety logic) and a MobilePage saved-local-only restore test. [#2, #5] Verified: 22 targeted tests pass, typecheck + oxlint clean, localization catalog/coverage and max-lines ratchet green.
gaberudy
added a commit
to goldenhelix/vsagent
that referenced
this pull request
Jul 19, 2026
Two container-deployment fixes (VSWarehouse packaging feedback stablyai#1 and stablyai#6): - node-pty ABI check: pnpm's install compiles node-pty against the ambient node's ABI (no Linux prebuilds), and the postinstall's Electron load probe cannot catch the drift because node-pty is pure N-API (dlopen skips the NODE_MODULE_VERSION check) — the wrong-ABI binary then crashes the serve process host-dependently (SIGSEGV/exit 139). Compare build/config.gypi's recorded ABI against Electron's and force the rebuild on mismatch, in both the shipped postinstall and the dev ensure-native-runtime. Verified against a real v0.6.1 tarball install: ABI 137 detected, rebuilt to 148, boots. - Stale singleton lock: on persistent userData volumes, Chromium's SingletonLock (symlink to <hostname>-<pid>) survives container restarts; a new container gets a new hostname, Chromium treats the lock as "in use on another computer", and the lockless launch dies in Ozone/X11 init with a misleading exit 133. Reclaim provably-dead locks before acquisition (serve mode, Linux only; opt-out via ORCA_SERVE_KEEP_STALE_SINGLETON_LOCK), and app.exit(1) with the clean diagnostic when a live lock genuinely blocks serve. Verified live: forged foreign-host lock reclaimed, serve boots. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01EuXM3YjGg6Wot5X2C7YWMu
AmethystLiang
added a commit
that referenced
this pull request
Jul 19, 2026
* Restructure mobile pairing setup into a clear stepped layout * Rework mobile pairing UI: radio-style path selector with sign-in gate fo * fix(mobile): resolve mobile-pairing review findings Applies the code-review findings for the reworked pairing UI: - Clear a displayed Relay QR on sign-out in both MobilePage and MobilePane (the rework dropped the wasSignedInRef watcher, leaving a stale Relay QR next to a "sign in required" prompt). Anywhere stays selected; the QR re-mints as local-only. [#1, #3] - Extract useMobilePairingConnectionMode so both panes resolve the saved preference identically instead of duplicating the state + resync effect. [#6] - Delete ~24 i18n keys the rework left unreferenced; sync locale catalogs to parity. [#4] - Give the connection-path radiogroup roving tabindex + arrow-key nav and document why it diverges from SettingsSegmentedControl. [#7] - Add MobilePane.test.tsx (previously untested safety logic) and a MobilePage saved-local-only restore test. [#2, #5] Verified: 22 targeted tests pass, typecheck + oxlint clean, localization catalog/coverage and max-lines ratchet green. * fix(mobile): resolve adversarial-review findings for pairing UI Address accepted findings from the mobile pairing UI rework: - MobilePane: add a request-generation epoch so a late getPairingQR response can't paint a stale Relay QR after sign-out, a mode switch, or an address change; arm rotation when discarding a pending mint. - MobilePage: on sign-in, upgrade a signed-out local-only fallback QR to Relay (invalidate + rotate-regenerate); handle null->connected too. - Extract useMobilePairingQrInvalidation so both sign-in/out edges and cross-window preference syncs invalidate/re-mint the QR consistently. - MobilePane: clear + rotate the QR when the selected address changes (manual pick or refresh-driven) so it can't encode the old endpoint. - MobilePairingConnectionOptions: guard the Sign in CTA on configured; show an Unavailable panel on unconfigured builds instead of dead CTA. - Drop the duplicate sign-in helper from MobilePairingSetupSection. - Remove dead i18n keys (title, recommended, signInToGenerate) and add relayUnavailable across all locale catalogs. - Add tests: deferred sign-out/mode-switch races, sign-in upgrade, cross-window sync, unconfigured build, arrow-key radiogroup. TODO left for the relay-label-honesty finding: getPairingQR does not expose the actually-encoded mode when an automatic offer degrades to local-only, so the mismatch can't be surfaced without a new return field. * fix(mobile): resolve relay-pairing deep-review regressions - MobilePane: invalidatePairing now clears loading so a superseded mid-flight generate can't wedge Generate disabled forever - MobilePage: stop auto-minting a local-only QR under the Relay label when signed out with Anywhere; gate Step 2 auto-generate and the Generate button on a shared canMintMobilePairingOffer helper, align with Settings, clear QR + loading on sign-out, mint Relay on sign-in - qr-invalidation: clear pairQrDataUrl (and loading) on every invalidation path so a stale QR can't stay scannable during rotation - Strengthen MobilePane/MobilePage tests for the aligned behavior and stuck-loading coverage - Translate relayUnavailable in es/ja/ko/zh Co-authored-by: Orca <[email protected]> * fix(mobile): refuse to mint QR when signed-out with Anywhere selected Replace silent degradation of Anywhere mode to local-only QR with explicit refusal. Add canMintMobilePairingOffer guard across all mint paths (address change, network invalidation, connection mode switch). This ensures the UI honestly encodes the selected pairing path. Improve keyboard focus visibility on the path selector by adding a persistent focus ring. * fix(mobile): detect and flag Relay provisioning degradation When Relay provisioning fails during automatic (Anywhere) pairing offer creation, the offer silently degrades to local-only. This confuses users who selected Anywhere expecting cellular capability. Add connectionMode field to the pairing offer result to expose what the offer actually encodes. The UI now flags degradation when the offered mode mismatches the user's selection. Also move credential rotation logic to the main process: rotate when requested mode differs from the pending token's encoded mode. This ensures QR codes displayed under an old policy can't pair under a new one, and windows reminting after preference sync converge on one token. Rename MobileRelayBetaAvailability → MobileRelayBetaNotice. * test(mobile): verify pairing codes don't flash during Relay mint Assert that the pairing QR and URL remain hidden while the Relay mint is pending, preventing confusing intermediate states when signing in unlocks Relay. --------- Co-authored-by: Orca <[email protected]>
This was referenced Jul 24, 2026
This was referenced Aug 3, 2026
fix(sidebar): keep each project's entry-point workspace visible under "Hide sleeping" (#8873)
#12257
Merged
This was referenced Aug 18, 2026
5 tasks done
9 tasks done
nwparker
added a commit
that referenced
this pull request
Oct 20, 2026
…31066) * fix(cli): worktree create sends the host --project/--host selected Codex review 6 #6: the CLI picked the right setup but sent only its repo id, so a repo id set up on two hosts failed as selector_ambiguous; and --project-host-setup ignored --host when setup ids repeated. worktree.create gains optional repoHostId (older hosts drop it and keep the old behaviour); the runtime narrows the repo selector to that host. * refactor(runtime): the repo selector carries its host through every lookup Review follow-up (Codex + Opus on #31066): a separate repoHostId was dropped by the startup-agent lookup, the CLI's GitLab link check and the create dedupe key. RuntimeRepoSelector now carries the host with the selector, so showRepo/resolveRepoSelector and startup-agent resolution keep it; the create dedupe key includes it; repo.show gains the same optional repoHostId; the CLI spreads one CliRepoTarget into every repo lookup. Handler-level tests cover worktree.create (plain, startupAgent, startupDraft), agent.launch, repo.show and the dedupe key. * test(runtime): drop a needless cast in the agent.launch host test; fold an import
nwparker
added a commit
that referenced
this pull request
Oct 20, 2026
Codex review 6 class fix (#4/#6/#7): host decisions read off a repo row's legacy connectionId miss rows that name SSH only as executionHostId. - getRepoRoutingConnectionId (shared/execution-host.ts): drop-in for a raw repo.connectionId routing check that also finds executionHostId-only SSH. - check-repo-host-read-ratchet: per-file count of raw repo connectionId reads in src/main, src/shared, src/cli; counts may only shrink. - Migrated 66 cheap reads: runtime GitHub/GitLab commands, PR/MR head ref fetches, preserved-branch cleanup, ref queries, base-ref IPC, worktree preparation, trash sweep, scan cache TTL, usage metadata.
nwparker
added a commit
that referenced
this pull request
Oct 20, 2026
…p ones (#31096) * feat(ci): ratchet raw repo connectionId host reads; one drop-in resolver Codex review 6 class fix (#4/#6/#7): host decisions read off a repo row's legacy connectionId miss rows that name SSH only as executionHostId. - getRepoRoutingConnectionId (shared/execution-host.ts): drop-in for a raw repo.connectionId routing check that also finds executionHostId-only SSH. - check-repo-host-read-ratchet: per-file count of raw repo connectionId reads in src/main, src/shared, src/cli; counts may only shrink. - Migrated 66 cheap reads: runtime GitHub/GitLab commands, PR/MR head ref fetches, preserved-branch cleanup, ref queries, base-ref IPC, worktree preparation, trash sweep, scan cache TTL, usage metadata. * fix(ipc): PR base IPC routes executionHostId-only SSH rows; ratchet is a stated lower bound Review follow-up (Opus on #31096): - worktrees:resolvePrBase decided git/gh routing on the raw connectionId while its head-ref fetches already used the resolver; one resolved connectionId now drives all of it (test fails on main). - getRepoRoutingConnectionId's contract is stated exactly: never local when the raw field is set; on a contradictory ssh row executionHostId wins. - The ratchet regex no longer matches report.connectionId; header and docs say it is a lower bound. - Regression tests for a runtime GitHub and GitLab command site. * test(ci): pin the repo host-read ratchet step to the static phase * fix(ci): repo host-read ratchet skips verbatim field copies into projected rows A copy of connectionId into a projected row decides nothing; migrating it to the resolver would change what the projection publishes. The sidebar feed catalog's copy (added after the baseline) and two older projections no longer count; baseline pruned to 91.
Old-G
referenced
this pull request
in Old-G/orca-plus
Oct 22, 2026
`orca repo list --json` gives each repo only a projectGroupId, so nothing outside the app could name a project's group. `orca repo groups [--json]` prints the groups through the existing read-only projectGroup.list RPC. First reader: the Strata HQ registry (ADR #6), which builds its list of projects from Orca instead of crawling folders. Verified: handler test (fails without the handler), CLI parity and specs tests, typecheck, oxlint, changed-code quality gate; the built CLI against the installed Orca+ printed both groups. Custom-Feature: repo-groups-cli Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2 tasks done
Old-G
referenced
this pull request
in Old-G/orca-plus
Oct 25, 2026
`orca repo list --json` gives each repo only a projectGroupId, so nothing outside the app could name a project's group. `orca repo groups [--json]` prints the groups through the existing read-only projectGroup.list RPC. First reader: the Strata HQ registry (ADR #6), which builds its list of projects from Orca instead of crawling folders. Verified: handler test (fails without the handler), CLI parity and specs tests, typecheck, oxlint, changed-code quality gate; the built CLI against the installed Orca+ printed both groups. Custom-Feature: repo-groups-cli Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 26, 2026
KyleQuinn888
added a commit
to KyleQuinn888/orca
that referenced
this pull request
Oct 27, 2026
…: isLocalSession/policy on native scope, cursor advance in (epoch,seq) order not ts, candidate metrics dedup via folded-cursor stamp, workspace fallback picks a real journal carrier
KyleQuinn888
added a commit
to KyleQuinn888/orca
that referenced
this pull request
Oct 28, 2026
…ds, stablyai#4 progress cleanup, stablyai#6 reentrancy guards, stablyai#10 debug removal)
|
mb |
11 tasks done
Merged
2 of 3 tasks
Old-G
referenced
this pull request
in Old-G/orca-plus
Nov 13, 2026
`orca repo list --json` gives each repo only a projectGroupId, so nothing outside the app could name a project's group. `orca repo groups [--json]` prints the groups through the existing read-only projectGroup.list RPC. First reader: the Strata HQ registry (ADR #6), which builds its list of projects from Orca instead of crawling folders. Verified: handler test (fails without the handler), CLI parity and specs tests, typecheck, oxlint, changed-code quality gate; the built CLI against the installed Orca+ printed both groups. Custom-Feature: repo-groups-cli Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Nov 17, 2026
Merged
Old-G
referenced
this pull request
in Old-G/orca-plus
Nov 18, 2026
`orca repo list --json` gives each repo only a projectGroupId, so nothing outside the app could name a project's group. `orca repo groups [--json]` prints the groups through the existing read-only projectGroup.list RPC. First reader: the Strata HQ registry (ADR #6), which builds its list of projects from Orca instead of crawling folders. Verified: handler test (fails without the handler), CLI parity and specs tests, typecheck, oxlint, changed-code quality gate; the built CLI against the installed Orca+ printed both groups. Custom-Feature: repo-groups-cli Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Nov 18, 2026
Merged
Old-G
referenced
this pull request
in Old-G/orca-plus
Nov 22, 2026
`orca repo list --json` gives each repo only a projectGroupId, so nothing outside the app could name a project's group. `orca repo groups [--json]` prints the groups through the existing read-only projectGroup.list RPC. First reader: the Strata HQ registry (ADR #6), which builds its list of projects from Orca instead of crawling folders. Verified: handler test (fails without the handler), CLI parity and specs tests, typecheck, oxlint, changed-code quality gate; the built CLI against the installed Orca+ printed both groups. Custom-Feature: repo-groups-cli Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
9 of 11 tasks
epocsohtets
added a commit
to epocsohtets/orca
that referenced
this pull request
Nov 29, 2026
…row when everyone sees the same; an attendee before the recording gets no empty 녹음 card (Riko stablyai#6 stablyai#7 stablyai#8, PoC) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace per-transport
ipcRenderer.on('pty:data'/'pty:exit')listeners with a singleton dispatcher that routes events by PTY ID via a Map lookup.Before: Each pane registered its own global IPC listener (filtered by ID internally). With N panes x React strict mode doubling = 2N listeners on the same channel, easily exceeding the default max of 10.
After: Exactly 2 IPC listeners total (one for
pty:data, one forpty:exit), regardless of pane/tab count. Transports register/unregister handlers in a Map keyed by PTY ID.Test plan