Skip to content

Metadata is overwritten on thread update if not explicitly specified #2283

@asvishnyakov

Description

@asvishnyakov

Describe the bug

If metadata is None (which is default value) on update_thread, it will overwrite saved metadata with empty object

https://github.com/aitsc/chainlit/blob/31fe84a212f5a68fd0816f1e259d012c6cfa99e7/backend/chainlit/data/chainlit_data_layer.py#L551

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdata layerPertains to data layers.keep-for-a-whileDon’t mark as stale. This label should be used only for confirmed bugs or other important thingsneeds-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions