Skip to content

[Bug]: SQLiteError: NOT NULL constraint failed: session_message.seq #2096

@byStrange

Description

@byStrange

Summary

When i try to chat with my models inside openwork as soon as i send the message. it raises error in the usual response box:

    at run (unknown)
    at #run (bun:sqlite:185:20)
    at appendMessage (/$bunfs/root/chunk-csbe8aea.js:2:62480)
    at session.next.agent.switched (/$bunfs/root/chunk-csbe8aea.js:2:56601)
    at oP (/$bunfs/root/chunk-csbe8aea.js:2:56546)
    at Gn (/$bunfs/root/chunk-csbe8aea.js:2:62522)
    at <anonymous> (/$bunfs/root/chunk-csbe8aea.js:2:62710)
    at <anonymous> (/$bunfs/root/chunk-a0djr57c.js:39:7317)
    at pf (/$bunfs/root/chunk-c2nqvebx.js:715:34374)
    at w6 (/$bunfs/root/chunk-a0djr57c.js:39:7306)
    at <anonymous> (/$bunfs/root/chunk-a0djr57c.js:39:5669)
    at run (node:async_hooks:62:22)
    at SyncEvent.run (/$bunfs/root/chunk-77nn8esd.js:10:62853)
    at SyncEvent.run (definition) (/$bunfs/root/chunk-a0djr57c.js:39:5213)
    at SessionPrompt.createUserMessage (/$bunfs/root/chunk-77nn8esd.js:1678:366)
    at SessionPrompt.createUserMessage (definition) (/$bunfs/root/chunk-77nn8esd.js:1677:2012)
    at SessionPrompt.prompt (/$bunfs/root/chunk-csbe8aea.js:2:240842)
    at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-77nn8esd.js:1678:250)
    at SessionHttpApi.promptAsync (/$bunfs/root/chunk-csbe8aea.js:2:91990)
    at SessionHttpApi.promptAsync (definition) (/$bunfs/root/chunk-csbe8aea.js:2:240749)
    at Server.listen (/$bunfs/root/chunk-csbe8aea.js:2:259930)
    at Server.listen (definition) (/$bunfs/root/chunk-csbe8aea.js:2:260053)

To Reproduce

  1. Download openwork with paru (paru openwork)
  2. run openwork
  3. Set up ollama cloud integration
  4. write a text in chat and send

Expected behavior

SQLiteError: NOT NULL constraint failed: session_message.seq
at run (unknown)
at #run (bun:sqlite:185:20)
at appendMessage (/$bunfs/root/chunk-csbe8aea.js:2:62480)
at session.next.agent.switched (/$bunfs/root/chunk-csbe8aea.js:2:56601)
at oP (/$bunfs/root/chunk-csbe8aea.js:2:56546)
at Gn (/$bunfs/root/chunk-csbe8aea.js:2:62522)
at (/$bunfs/root/chunk-csbe8aea.js:2:62710)
at (/$bunfs/root/chunk-a0djr57c.js:39:7317)
at pf (/$bunfs/root/chunk-c2nqvebx.js:715:34374)
at w6 (/$bunfs/root/chunk-a0djr57c.js:39:7306)
at (/$bunfs/root/chunk-a0djr57c.js:39:5669)
at run (node:async_hooks:62:22)
at SyncEvent.run (/$bunfs/root/chunk-77nn8esd.js:10:62853)
at SyncEvent.run (definition) (/$bunfs/root/chunk-a0djr57c.js:39:5213)
at SessionPrompt.createUserMessage (/$bunfs/root/chunk-77nn8esd.js:1678:366)
at SessionPrompt.createUserMessage (definition) (/$bunfs/root/chunk-77nn8esd.js:1677:2012)
at SessionPrompt.prompt (/$bunfs/root/chunk-csbe8aea.js:2:240842)
at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-77nn8esd.js:1678:250)
at SessionHttpApi.promptAsync (/$bunfs/root/chunk-csbe8aea.js:2:91990)
at SessionHttpApi.promptAsync (definition) (/$bunfs/root/chunk-csbe8aea.js:2:240749)
at Server.listen (/$bunfs/root/chunk-csbe8aea.js:2:259930)
at Server.listen (definition) (/$bunfs/root/chunk-csbe8aea.js:2:260053)

Actual behavior

it shouldn't raise this error and just work normally

Screenshots (optional)

Image

OW version & Desktop info (optional)

  • OpenWork version [v0.15.1]
  • OS: [CachyOs]

Additional context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions