Skip to content

feat(assist): sticky sessions and agent routing#10

Open
dalehamel wants to merge 2 commits intotechartdev:mainfrom
dalehamel:feature/assist-sessions-routing
Open

feat(assist): sticky sessions and agent routing#10
dalehamel wants to merge 2 commits intotechartdev:mainfrom
dalehamel:feature/assist-sessions-routing

Conversation

@dalehamel
Copy link

Previously as documented in #8, we were seeing that the agent ID was completely ignored, and every new chat created a new session with open claw.

It seems the headers we were setting are completely broken?

This fixes both issues by:

  • Changing the session ID Format to include the agent id
  • Storing the session ID and keeping it 'sticky' between all conversations (and ignoring the home assistant conversation ID)
    • Durable across home assistant restarts

We now see that home assistant correctly routes the session and reuses it:

image image

Previously this would route to 'main' and chew through tokens as it reloaded all the agent info for every conversation very wastefully.

Partial/incomplete debug logging references (CONF_DEBUG_LOGGING,
broken options.get() calls) were accidentally included in this branch.
The full debug logging feature lives in feature/debug-logging.
@dalehamel
Copy link
Author

Related to this i implemented '/new' handling dalehamel#2 so that we can get a new context window if we want one (but it has to be done through text chat)

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.

1 participant