Skip to content

gateway: overload TRelayRequest.Create for dcc64 - #322

Merged
FMXExpress merged 1 commit into
mainfrom
claude/relay-dcc64-default-param
Jun 21, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
claude/relay-dcc64-default-param

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

Summary

  • dcc64 rejects the 4-arg call at PasClaw.Providers.Relay.pas:307 with E2034 Too many actual parameters when the optional ASessionId sits behind a const string = '' default. FPC accepts both forms, Delphi does not.
  • Split TRelayRequest.Create into two overloaded constructors -- a 3-arg overload that delegates to the 4-arg form with an empty session id -- so the call shape compiles on both compilers.
  • PR relay: sticky routing for KV-cache locality on multi-turn sessions #321 follow-up; no behaviour change.

Test plan

  • make all (FPC build clean)
  • make test-relay-queue -- all 18 tests pass, including the 4 sticky-routing tests that exercise the 4-arg call shape
  • dcc64 build to verify E2034 is gone

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon


Generated by Claude Code

dcc64 rejects the 4-arg call site in PasClaw.Providers.Relay.pas:307
with E2034 "Too many actual parameters" when the optional ASessionId
sits behind a `const string = ''` default. FPC accepts it; Delphi does
not. Split into two overloaded constructors -- a 3-arg overload that
delegates to the 4-arg form with an empty session id -- so both
compilers parse the same call shapes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
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.

2 participants