Skip to content

feat: collect remote editor logs in support bundles#1042

Open
EhabY wants to merge 4 commits into
mainfrom
feat/support-bundle-remote-logs
Open

feat: collect remote editor logs in support bundles#1042
EhabY wants to merge 4 commits into
mainfrom
feat/support-bundle-remote-logs

Conversation

@EhabY

@EhabY EhabY commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Collect local Remote-SSH, Coder proxy, and remote editor-server logs in support bundles.
  • Pass remote files through Coder's repeatable --workspace-file support, gated to Coder 2.36.0+.
  • Preserve the selected workspace agent and fail closed when a safe remote path cannot be determined.

Remote log coverage

For each resolved server data directory, collect these narrow known layouts:

  • data/logs/**/*.log — editor runtime, extension-host, and related logs
  • .*.log — legacy server startup logs
  • cli/servers/*/log.txt — exec-server startup logs

Both startup layouts are included rather than gated by the current remote.SSH.useExecServer value: the setting can change after connection, Open Remote SSH uses the legacy layout independently, and supported IDE forks do not expose one consistent authoritative mode signal.

Log path resolution

Paths are resolved in this order:

  1. Interpret the selected Remote-SSH extension's remote.SSH.serverInstallPath behavior. This takes precedence because supported implementations may pass it as VS Code's --server-data-dir.
  2. Use the active remote exec-server's validated VSCODE_AGENT_FOLDER when available.
  3. Fall back to ~/{product-server-folder} from the editor's validated product.json metadata.
  4. Omit remote logs rather than scan broad paths or pass unresolved environment variables or glob syntax.

The resolver uses the same first supported Remote-SSH extension selected during activation.

Remote-SSH extension Host matching serverInstallPath behavior Startup layout evidence
Microsoft Remote-SSH Exact host Parent directory; append the product server folder Documents both legacy and exec-server layouts
Cursor Remote SSH Exact host Parent directory; append the product server folder without duplicating an existing suffix Exec-server-style cli/servers/*/log.txt observed
Open Remote SSH Exact host, then most-specific wildcard, then * Final server data directory; use directly Source writes .<commit>.log at the server data root
Windsurf Remote SSH Not applicable Setting is ignored; use the active environment or product metadata fallback No authoritative public layout found; collect both narrow layouts best-effort
Antigravity Remote SSH Not applicable Setting is ignored; use the active environment or product metadata fallback Legacy-style root startup logs observed; collect both narrow layouts best-effort

Testing

  • pnpm test — 2,232 passed, 1 skipped
  • pnpm lint
  • pnpm typecheck
  • pnpm format:check
  • git diff --check

Generated by Coder Agents.

@EhabY
EhabY force-pushed the feat/support-bundle-remote-logs branch from a44730d to 05c3870 Compare July 20, 2026 22:34
@EhabY EhabY self-assigned this Jul 21, 2026
@EhabY
EhabY force-pushed the feat/support-bundle-remote-logs branch from 05c3870 to 1b3db23 Compare July 21, 2026 08:44
@EhabY

EhabY commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

/coder-agents-review

@coder-agents-review

coder-agents-review Bot commented Jul 22, 2026

Copy link
Copy Markdown

Chat: Review in progress (20/20 reviewers complete) | View chat
Requested: 2026-07-22 08:23 UTC by @EhabY
Spend: $22.59 / $100.00

deep-review v0.9.0 | Round 1 | aa992f9..f8022d8

Status: Panel review (19 reviewers)

About deep-review

CRF = Coder Review Finding (P0-P4, Nit, Note)

Reviewer Focus
Bisky tests
Chopper ops/errors
Churn-guard change verification
Ging language modernization
Gon naming
Hisoka edge cases
Killua perf
Kite change integrity
Knov contracts
Knuckle SQL
Komugi flake/determinism
Kurapika security
Law decomposition
Leorio docs
Luffy product
Mafu-san process
Mafuuu contracts
Melody dispatch/pairing
Meruem structural
Nami frontend
Netero mechanical checks
Pariston premise testing
Pen-botter product gaps
Razor verification
Robin duplication
Ryosuke Go arch
Takumi concurrency
Zoro shape

🤖 Managed by Coder Agents.

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