Allow setting conversation ID when creating a new ...
# proj-sdk
w
Allow setting conversation ID when creating a new convo in AgentServer: https://github.com/All-Hands-AI/agent-sdk/pull/525 (@straight-sundown-84319 you might need/want this)
s
I haven't needed it so far
The pattern I have is...
The Agent Server picks a conversation id
And the webhook communicates this back to the app server
w
that makes sense!
only issue I would see is collisions on AppServer
s
The conversation id is a uuid
w
but that's probably a rare case if we assume we control all the AgentServers
though if we let people bring custom AgentServer images that could become an attack vector...
ish
s
The app server checks
👍 1
Checks the session api key passed back to verify the sandbox it came from
👌 1
w
good to keep "agent server is untrustworthy" in our mental model though, now that I think about it
s
Yes
That is exactly my mental model
👌 1
c
Do we want to merge this, or it is ok to close it?
s
I don't need it on my side
Though I do think the usual security paradigm may be inverted here
Normally, you don't allow the client to specify the id - but in this case the client (App Server) is more trustworthy than the sandbox, so maybe it should be permitted
But I do not need it right now
I check in the webhook callback that the session_api_key used is associated with either no conversation or the conversation is owned by the correct user
TLDR: I'd close it - we can add it later if needed
👍 1
c
sounds good!