You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidates the todo provider's incomplete-item filtering into a single unexported helper used by both GetRemainingItems and the todos_get_remaining tool. This keeps the Go internals closer to the .NET TodoProvider shape, where remaining todos are computed consistently with the same Where(t => !t.IsComplete).ToList() query pattern.
.NET Reference
dotnet/src/Microsoft.Agents.AI/Harness/Todo/TodoProvider.cs - GetRemainingTodosAsync and the todos_get_remaining tool both return incomplete todo items using the same filtering expression.
dotnet/tests/Microsoft.Agents.AI.UnitTests/Harness/Todo/TodoProviderTests.cs - sampled tests covering remaining todo behavior.
Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./agent/harness/todo
Notes
Rejected sampled candidates:
dotnet/src/Microsoft.Agents.AI.Workflows/Execution/IRunEventStream.cs versus workflow/internal/execution/eventstream.go: corresponding Go event stream logic is concurrency-sensitive, so helper extraction there was riskier for a nightly portability cleanup.
dotnet/src/Microsoft.Agents.AI.Workflows/Checkpointing/DirectEdgeInfo.cs versus workflow/internal/checkpoint/info.go and workflow/info.go: Go checkpoint and edge matching already have focused tests and no obvious tiny structural cleanup from this sample.
dotnet/src/Microsoft.Agents.AI/AnonymousDelegatingAIAgent.cs versus agent/agent.go: no small equivalent internal delegate-agent cleanup was found without touching broader agent construction behavior.
Open [dotnet-code] PR checks via the GitHub read tool returned HTTP 503 during this run, including candidate-specific todo searches, so this PR was kept narrowly scoped to reduce overlap risk.
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch dotnet-code-todo-remaining-helper-5ebe744e4e4ab38c.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Summary
Consolidates the todo provider's incomplete-item filtering into a single unexported helper used by both
GetRemainingItemsand thetodos_get_remainingtool. This keeps the Go internals closer to the .NET TodoProvider shape, where remaining todos are computed consistently with the sameWhere(t => !t.IsComplete).ToList()query pattern..NET Reference
dotnet/src/Microsoft.Agents.AI/Harness/Todo/TodoProvider.cs-GetRemainingTodosAsyncand thetodos_get_remainingtool both return incomplete todo items using the same filtering expression.dotnet/tests/Microsoft.Agents.AI.UnitTests/Harness/Todo/TodoProviderTests.cs- sampled tests covering remaining todo behavior.Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./agent/harness/todoNotes
Rejected sampled candidates:
dotnet/src/Microsoft.Agents.AI.Workflows/Execution/IRunEventStream.csversusworkflow/internal/execution/eventstream.go: corresponding Go event stream logic is concurrency-sensitive, so helper extraction there was riskier for a nightly portability cleanup.dotnet/src/Microsoft.Agents.AI.Workflows/Checkpointing/DirectEdgeInfo.csversusworkflow/internal/checkpoint/info.goandworkflow/info.go: Go checkpoint and edge matching already have focused tests and no obvious tiny structural cleanup from this sample.dotnet/src/Microsoft.Agents.AI/AnonymousDelegatingAIAgent.csversusagent/agent.go: no small equivalent internal delegate-agent cleanup was found without touching broader agent construction behavior.Open
[dotnet-code]PR checks via the GitHub read tool returned HTTP 503 during this run, including candidate-specific todo searches, so this PR was kept narrowly scoped to reduce overlap risk.Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
dotnet-code-todo-remaining-helper-5ebe744e4e4ab38c.Click here to create the pull request
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch (65 lines)