Skip to content

ref(seer-rpc): type rpc_get_trace_waterfall return as EAPTrace | None#117779

Draft
azulus wants to merge 1 commit into
masterfrom
jeremy/seer-rpc-type-agent-trace-waterfall
Draft

ref(seer-rpc): type rpc_get_trace_waterfall return as EAPTrace | None#117779
azulus wants to merge 1 commit into
masterfrom
jeremy/seer-rpc-type-agent-trace-waterfall

Conversation

@azulus

@azulus azulus commented Jun 16, 2026

Copy link
Copy Markdown
Member

The function was already constructing a typed EAPTrace via the underlying get_trace_waterfall helper, then calling .dict() to flatten it for the RPC dispatcher. Drop the flatten and let the dispatcher's BaseModel adapter serialize.

Wire shapes: byte-identical for the success path. The not-found path returns None instead of {}; the known seer caller checks if not rpc_result, which is falsy for both.

The function was already constructing a typed `EAPTrace` via the
underlying `get_trace_waterfall` helper, then calling `.dict()` to
flatten it for the RPC dispatcher. Drop the flatten and let the
dispatcher's BaseModel adapter serialize.

Wire shapes: byte-identical for the success path. The not-found path
returns `None` instead of `{}`; the known seer caller checks
`if not rpc_result`, which is falsy for both.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant