Skip to content

fix: add missing TelemetryRuntimeConfig methods and remove obsolete test#4730

Merged
doudouOUC merged 1 commit into
QwenLM:daemon_mode_b_mainfrom
doudouOUC:fix/merge-resolution-missing-fixes
Jun 3, 2026
Merged

fix: add missing TelemetryRuntimeConfig methods and remove obsolete test#4730
doudouOUC merged 1 commit into
QwenLM:daemon_mode_b_mainfrom
doudouOUC:fix/merge-resolution-missing-fixes

Conversation

@doudouOUC

Copy link
Copy Markdown
Collaborator

Summary

  • Add isInteractive() and getOutboundCorrelationPropagateTraceContext() to TelemetryRuntimeConfig interface (required by sdk.ts)
  • Add implementations in createDaemonTelemetryRuntimeConfig in runQwenServe.ts
  • Remove obsolete httpAcpBridge.test.ts (tests moved to acp-bridge/bridge.test.ts per F1)

These fixes were applied during the merge conflict resolution in #4490 but lost when the merge commit was recreated with proper two-parent structure.

Test plan

  • Full build passes (npm run build)
  • TypeScript compilation clean — no TS2339 errors for missing methods

🤖 Generated with Qwen Code

- Add isInteractive() and getOutboundCorrelationPropagateTraceContext()
  to TelemetryRuntimeConfig interface (required by sdk.ts)
- Add implementations in createDaemonTelemetryRuntimeConfig
- Remove httpAcpBridge.test.ts (tests moved to acp-bridge/bridge.test.ts)

These fixes were applied in the initial merge resolution but lost when
the merge commit was recreated with proper two-parent structure.
Copilot AI review requested due to automatic review settings June 3, 2026 09:04
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

📋 Review Summary

This PR restores critical fixes that were lost during merge conflict resolution in #4490. The changes add two missing methods to the TelemetryRuntimeConfig interface and their implementations in the daemon mode, and remove an obsolete test file that was already migrated. The changes are minimal, focused, and necessary for TypeScript compilation to succeed.

🔍 General Feedback

  • Positive: The PR correctly identifies and restores missing code that was lost during merge resolution. The changes are surgical and directly address the TypeScript errors (TS2339) mentioned in the test plan.
  • Positive: The fix aligns daemon mode behavior with the expected interface contract — daemon mode is correctly non-interactive and does not propagate trace context by default.
  • Positive: Removing the obsolete test file (6184 lines) reduces maintenance burden and eliminates dead code, as tests were already migrated per F1.
  • Observation: The interface change in runtime-config.ts is additive only — no breaking changes to existing callers.

🎯 Specific Feedback

🔴 Critical

No critical issues identified. The changes are necessary to fix compilation errors and restore lost functionality.

🟡 High

No high priority issues identified.

🟢 Medium

No medium priority issues identified.

🔵 Low

  • File: packages/cli/src/serve/runQwenServe.ts:122-123 — Consider adding brief inline comments explaining why daemon mode returns false for both methods, e.g., // Daemon mode runs headless without user interaction and // Daemon mode does not propagate trace context to outbound requests by default. This would help future maintainers understand the design decision without digging into the PR history.

✅ Highlights

  • Excellent recovery: Quickly identifying and restoring lost merge changes is good hygiene — this prevents silent degradation of the codebase.
  • Clean interface design: The TelemetryRuntimeConfig interface continues to provide a clean abstraction for telemetry runtime configuration, allowing different modes (interactive CLI vs. daemon) to provide appropriate implementations.
  • Test hygiene: Removing the obsolete httpAcpBridge.test.ts file follows through on the F1 migration commitment, keeping the codebase clean.

📝 Verification Notes

Per the PR description:

  • ✅ TypeScript compilation should pass with no TS2339 errors for missing methods
  • npm run build should succeed
  • ✅ The deleted test file (httpAcpBridge.test.ts) was already migrated to acp-bridge/bridge.test.ts per F1 — verify the new location exists and has equivalent coverage if this is a concern

Recommendation: Approve and merge. The changes are minimal, necessary, and low-risk.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR restores telemetry runtime API compatibility by extending TelemetryRuntimeConfig with two methods used by the telemetry SDK, wiring minimal daemon-side implementations in qwen serve, and removing an obsolete CLI-side ACP bridge test suite that has been relocated.

Changes:

  • Extend TelemetryRuntimeConfig with isInteractive() and getOutboundCorrelationPropagateTraceContext().
  • Implement the two methods in the daemon telemetry runtime config used by packages/cli’s runQwenServe.
  • Delete packages/cli/src/serve/httpAcpBridge.test.ts as obsolete after the test migration to @qwen-code/acp-bridge.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/telemetry/runtime-config.ts Adds two required methods to the telemetry runtime config interface.
packages/cli/src/serve/runQwenServe.ts Implements the new runtime-config methods for daemon telemetry initialization.
packages/cli/src/serve/httpAcpBridge.test.ts Removes the legacy CLI-side ACP bridge test suite (now covered elsewhere).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +122 to +123
isInteractive: () => false,
getOutboundCorrelationPropagateTraceContext: () => false,
@doudouOUC doudouOUC requested review from chiga0, yiliang114 and ytahdn June 3, 2026 09:11
@doudouOUC doudouOUC merged commit 2e7483d into QwenLM:daemon_mode_b_main Jun 3, 2026
3 checks passed
@doudouOUC doudouOUC deleted the fix/merge-resolution-missing-fixes branch June 3, 2026 09:22
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.

4 participants