Skip to content

Restore state-backed tool call IDs#617

Open
brandonkachen wants to merge 1 commit into
mainfrom
jahooma/restore-tui-change-safely
Open

Restore state-backed tool call IDs#617
brandonkachen wants to merge 1 commit into
mainfrom
jahooma/restore-tui-change-safely

Conversation

@brandonkachen

Copy link
Copy Markdown
Collaborator

Summary

  • Restore deterministic tool call IDs using the functions.<tool>.<index> shape with a run/session-backed monotonic counter.
  • Seed the counter from retained history and pending calls, including the older colon-delimited deterministic ID shape.
  • Share the counter through spawned agent state while keeping the public agent template types free of internal allocator state.

Validation

  • bun test packages/agent-runtime/src/util/__tests__/tool-call-id.test.ts packages/agent-runtime/src/__tests__/run-programmatic-step.test.ts packages/agent-runtime/src/__tests__/tool-validation-error.test.ts
  • bun run --cwd packages/agent-runtime typecheck
  • bun run --cwd common typecheck
  • bun run --cwd packages/agent-runtime test
  • NODE_ENV=production bun test cli/src/utils/__tests__/sdk-event-handlers.test.ts cli/src/utils/__tests__/message-block-helpers.test.ts cli/src/utils/__tests__/send-message-helpers.test.ts
  • bun run --cwd cli typecheck
  • bun run --cwd cli src/index.tsx --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants