-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Biographer Thread Lost #201
Labels
Milestone
Comments
Mookse
added
bug
Something isn't working
required
functionality required for primary pre-alpha release to family and friends
bot
labels
May 16, 2024
Mookse
changed the title
Thread is getting lost (new one created) every exchange
Biographer Thread Lost
May 16, 2024
async function chat(ctx){
ctx.state.chatMessage = ctx.request.body
ctx.state.thread = ctx.state.MemberSession.thread
const message = ctx.request.body?.message ?? false /* body has all the nodes sent by fe */
if(!message?.length)
ctx.throw(400, 'missing `message` content')
const response = await ctx.state.avatar.chatRequest(ctx)
ctx.body = response
} |
1 similar comment
async function chat(ctx){
ctx.state.chatMessage = ctx.request.body
ctx.state.thread = ctx.state.MemberSession.thread
const message = ctx.request.body?.message ?? false /* body has all the nodes sent by fe */
if(!message?.length)
ctx.throw(400, 'missing `message` content')
const response = await ctx.state.avatar.chatRequest(ctx)
ctx.body = response
} |
async function chat(ctx){
const message = ctx.request.body?.message
?? false /* body has all the nodes sent by fe */
if(!message?.length)
ctx.throw(400, 'missing `message` content')
const response = await ctx.state.avatar.chatRequest(message)
ctx.body = response
} |
See file alterations in branch for fix. Entire handshake was broken between frontend (sending null) to backend not pre-creating conversations it knew it could undertake from thread ids found in bots.
|
github-project-automation
bot
moved this from In Development
to Done
in MyLife Alpha-Talc
May 16, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thread is getting lost (new one created) every exchange at local dev - might have to do with save or if, correct asap
id=null
The text was updated successfully, but these errors were encountered: