Skip to content

Conversation

@dluc
Copy link
Collaborator

@dluc dluc commented Dec 1, 2025

Summary

Enhances the upsert (put) command to include node information in the JSON response, allowing users to see which node was used for the operation.

Before:

{
  "id": "sh7lxf0xxkyekj70632czg2c",
  "completed": true,
  "queued": false
}

After:

{
  "id": "sh7lxf0xxkyekj70632czg2c",
  "node": "personal",
  "completed": true,
  "queued": false
}

Changes

  • Modified UpsertCommand.cs to include node.Id in response output
  • Node information is already available from the Initialize() method
  • Only affects non-quiet verbosity mode (quiet mode still outputs just the ID)

Testing

  • ✅ All 301 tests pass (192 Main.Tests + 109 Core.Tests)
  • ✅ 0 skipped tests
  • ✅ Code coverage: 81.99% (exceeds 80% threshold)
  • ✅ Build: 0 warnings, 0 errors

Stats

  • Files changed: 1
  • Lines added: 1
  • Lines removed: 0
  • Tests added: 0 (existing tests validate behavior)

Breaking Changes

None - this is a backward-compatible enhancement that adds information to the response.

Add node ID to the JSON response of the upsert (put) command to inform users which node was used for the operation.

Changes:
- Modified UpsertCommand to include node.Id in response output
- Response now shows: {id, node, completed, queued, error}
- All 301 tests pass with 81.99% coverage

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <[email protected]>
@dluc dluc merged commit bdd7221 into microsoft:main Dec 1, 2025
3 checks passed
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