Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Bug fix, Enhancement
Description
Fixed property path for accessing
rich_typein code script messagesUpdated code script extraction to use
code_scriptproperty instead oftextRemoved redundant conditional branches for
ProgramCoderich type handlingAdded JSDoc documentation for
code_scriptproperty in type definitionsDiagram Walkthrough
File Walkthrough
chat-box.svelte
Fix code script property access in copy functionsrc/routes/chat/[agentId]/[conversationId]/chat-box.svelte
message?.rich_content?.rich_typetomessage?.rich_content?.message?.rich_typecode_scriptproperty instead oftextfor ProgramCode type
rc-js-interpreter.svelte
Use code_script property for JavaScript interpreter initializationsrc/routes/chat/[agentId]/[conversationId]/rich-content/rc-js-interpreter.svelte
code_scriptproperty overtextcode_script || text || ''rc-message.svelte
Remove redundant ProgramCode conditional branchsrc/routes/chat/[agentId]/[conversationId]/rich-content/rc-message.svelte
types
code
conv-dialog-element.svelte
Simplify dialog element rendering logicsrc/routes/page/conversation/[conversationId]/conv-dialog-element.svelte
conversationTypes.js
Add code_script property documentation to type definitionssrc/lib/helpers/types/conversationTypes.js
code_scriptpropertycode_scriptas string type in IRichContent prototype