Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
-
Put the SSH key for GitHub in the 1Password SSH agent (
IdentityAgentin~/.ssh/config). -
In
~/.codex/config.toml, add a git marketplace with an SSH URL:[marketplaces.example] source = "[email protected]:<owner>/<repo>.git" source_type = "git"
-
Start T3 Code with the Codex provider enabled and the default background profile (
balanced). -
Wait for the provider health refresh. With
balanced, it occurs one time each 5 minutes.
Expected behavior
- The health probe does not leave child processes that ask the SSH agent for a signature after the probe stops.
- If an SSH agent prompt occurs, the agent can find the application that started the request (T3 Code).
Actual behavior
Each 5 minutes, T3 starts a new codex app-server for the health probe. When it starts, Codex checks the git marketplace. I recorded this process tree at 10:08:47 (local time):
T3 Code (Beta) server (bin.mjs)
└─ codex app-server
└─ git -c safe.bareRepository=explicit ls-remote [email protected]:<owner>/<repo>.git HEAD
└─ /usr/bin/ssh -o SendEnv=GIT_PROTOCOL [email protected] git-upload-pack '<owner>/<repo>.git'
codex app-server stops approximately 1 second after it starts, when the probe is complete. At that time, ssh still waits for the SSH agent.
1Password reads the parent processes of ssh at the same time as codex app-server stops. The difference is less than 35 ms in 3 samples. 1Password cannot find the parent processes. Thus it shows an approval prompt for "Unknown application". Then the agent connection closes (Broken pipe).
Three samples (local time, UTC+1). The macOS unified log gives the last log line of codex. The 1Password log gives the agent error.
Last log line of codex app-server |
1Password agent log |
|---|---|
| 09:58:46.311 | 09:58:46.315 launchd is missing from process tree, falling back to the caller process |
| 10:03:47.365 | 10:03:47.375 process tree is empty |
| 14:55:47.586 | 14:55:47.552 process tree is empty |
The prompt occurs each time 1Password has no approval for this request, for example after each lock of 1Password. In my 1Password logs, this error occurs 1 to 6 times each day (13 times from 2026-11-10 to 2026-11-16).
A prompt for an unknown application is a security signal. With this bug, the user gets this prompt from a normal background task. Thus users can learn to approve SSH requests from unknown applications.
Possible changes:
- Wait until the child processes of
codex app-serverstop before the probe stops the process. - Use one long-lived
codex app-serverfor the health probes.
Impact
Minor bug or occasional failure
Version or commit
T3 Code (Beta) 0.1.9, desktop app
Environment
macOS 26.6.2, codex-cli 0.169.0, 1Password 8.12.40 (SSH agent), git 2.56.1
Logs or stack traces
# 1Password log (UTC)
WARN 2026-11-16T08:58:46.315Z [1P:foundation/op-sys-info/src/process_information/macos.rs:204] failed to obtain parent PID information for 70687 with code 0
WARN 2026-11-16T08:58:46.316Z [1P:ssh/op-session-info/src/macos.rs:51] launchd is missing from process tree, falling back to the caller process
WARN 2026-11-16T08:58:49.959Z [1P:ssh/op-ssh-agent/src/lib.rs:394] failed to receive agent request(Io(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })), dropping client
ERROR 2026-11-16T09:03:47.375Z [1P:ssh/op-session-info/src/macos.rs:27] process tree is empty
WARN 2026-11-16T09:03:54.988Z [1P:ssh/op-ssh-agent/src/lib.rs:394] failed to receive agent request(Io(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })), dropping client
ERROR 2026-11-16T13:55:47.552Z [1P:ssh/op-session-info/src/macos.rs:27] process tree is empty
# macOS unified log (local time, UTC+1)
09:58:45.242 codex[70645] first log line
09:58:45.510 ssh[70687] first log line, TCP connection to port 22
09:58:46.311 codex[70645] last log line ("Exiting exit handler.")
10:03:46.377 codex[81908] first log line
10:03:46.580 ssh[81918] first log line, TCP connection to port 22
10:03:47.365 codex[81908] last log line ("Exiting exit handler.")
14:55:47.586 codex[28825] last log line ("Exiting exit handler.")Workaround
- Select the
battery-saverbackground profile. The probe then runs one time each 15 minutes. This decreases the number of prompts, but it does not stop them. - If the marketplace repository is public, use an HTTPS URL for it.
Activity