Skip to content

Commit

Permalink
Fix: make sure script id is always set
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey committed Sep 4, 2024
1 parent 81ca1d7 commit da024d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/chat/chatBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ const ChatBar = ({
event.preventDefault();
commandsRef.current?.focusCatalog();
} else {
event.preventDefault();
setUserMessagesIndex((prevIndex) => {
const newIndex = Math.min(
prevIndex + 1,
Expand Down
2 changes: 1 addition & 1 deletion server/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const mount = async (
// Here we need to pass a fake GPTSCRIPT_THREAD_ID so that knowledge tool doesn't error out. Because it will always look for GPTSCRIPT_THREAD_ID in the env
// It should not import anything from the env. This is the case where you chat in Edit Assistant page where thread is not enabled.
'GPTSCRIPT_THREAD_ID=' + (threadID ? threadID : '0'),
'GPTSCRIPT_SCRIPT_ID=' + scriptID,
'GPTSCRIPT_SCRIPT_ID=' + (scriptID ? scriptID : '0'),
],
};

Expand Down

0 comments on commit da024d6

Please sign in to comment.