Skip to content

Fix double content bug in thread logging#237

Merged
drbrady8800 merged 1 commit intomainfrom
fix-prompt-started-logging
Jun 20, 2025
Merged

Fix double content bug in thread logging#237
drbrady8800 merged 1 commit intomainfrom
fix-prompt-started-logging

Conversation

@drbrady8800
Copy link
Contributor

PromptStarted events were getting logged like this: `{"content": {"content": "actual prompt"}} which was surfaced with Scott's recent changes to loading chat history into the state. This addresses that and also allows for logs to be viewed even if the bug affects them.

Copy link
Collaborator

@scottpersinger scottpersinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. I really think eventually we will want to store our Events natively, which we are close to, and reconstruct chat history from them (rather than storing LLM "messages"). When we do this this log function should look really simple.

@drbrady8800 drbrady8800 merged commit c81d3cc into main Jun 20, 2025
2 checks passed
@drbrady8800 drbrady8800 deleted the fix-prompt-started-logging branch June 20, 2025 12:27
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.

2 participants