Skip to content

Support shared repository tracing configuration - #294

Merged
Stephen Belanger (Qard) merged 19 commits into
mainfrom
fix/sdk-601-trace-disable
Nov 20, 2026
Merged

Stephen Belanger (Qard) merged 19 commits into
mainfrom
fix/sdk-601-trace-disable

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Teams can opt repositories into coding-agent tracing without changing how developers launch their agents. A shared .braintrust.json controls all supported agents, while each developer keeps their own user-level installation and credentials.

bt trace install replaces setup, which remains an alias. Project settings inherit from user settings; project-local span plugins run after user plugins by default, with an option to replace the inherited chain. Project-scoped uninstall removes the shared file, and doctor reports the repository's effective settings.

The companion bt change passes parsed command-line arguments to the tracing integration. Pi and OpenCode installations need updated plugins to apply project settings.

Closes SDK-601.
Closes SDK-849.

Validated with the daemon suite, Pi and OpenCode package tests, scoped CLI and plugin-chain tests, and real Codex and Claude sessions against mock services.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T09:31:09.484668Z 9a5c20c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 9a5c20cbfa

ℹ️ 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 (@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 (@codex) address that feedback".

Comment thread bt-daemon/src/trace_runtime.rs Resolved
Comment thread bt-daemon/src/setup/mod.rs Resolved
@Qard Stephen Belanger (Qard) changed the title Keep tracing configuration when disabled Separate tracing setup from enable and disable Nov 18, 2026

@bradumbaugh bradumbaugh left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stephen Belanger (@Qard) I think maybe OpenCode needs to check the global disable setting when merging settings?

bt trace disable writes tracing_disabled: true, and Pi checks that value to prevent project settings from overriding it.

OpenCode merges project settings over global settings, then reads trace_to_braintrust, but I don't think it checks the global disable setting?

@Qard

Copy link
Copy Markdown
Collaborator Author

bradumbaugh Good catch. Fixed in 803ee2f: OpenCode now honors the global pause even when a project enables tracing, while managed runs can still opt in. The regression test covers pause, re-enable, and managed-run behavior. Existing installations need the updated OpenCode package released and installed for the pause to take effect.

@bradumbaugh bradumbaugh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stephen Belanger (@Qard) Thanks for taking a look!

@Qard Stephen Belanger (Qard) changed the title Separate tracing setup from enable and disable Support user and project tracing settings Nov 18, 2026
@Qard Stephen Belanger (Qard) changed the title Support user and project tracing settings Support scoped tracing installations Nov 19, 2026
@Qard Stephen Belanger (Qard) changed the title Support scoped tracing installations Support shared repository tracing configuration Nov 19, 2026
@Qard
Stephen Belanger (Qard) merged commit 0188190 into main Nov 20, 2026
29 checks passed
@Qard
Stephen Belanger (Qard) deleted the fix/sdk-601-trace-disable branch November 20, 2026 17:12
Stephen Belanger (Qard) added a commit to braintrustdata/bt that referenced this pull request Nov 20, 2026
Pass parsed command-line arguments to the tracing integration so it can
distinguish explicit choices from defaults while continuing to use
`bt`'s existing profile, organization, project, and credential
selection.

Depends on [the shared repository tracing
change](braintrustdata/braintrust-coding-agent-plugins#294).
Update the daemon pin to its merged commit before merging this PR.

Validated with locked Cargo checks and isolated CLI tests for repository
installation, uninstall, doctor, and plugin inheritance.
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.

3 participants