feat: Removes prompt argument from completion state

This commit removes the prompt argument from the completion state.
The argument is deleted from the context after the completion is handled.
This prevents unexpected behavior and ensures a cleaner state.
This commit is contained in:
Dennis Geurts 2025-07-12 12:45:02 +02:00
commit e2de80fd84
2 changed files with 4 additions and 1 deletions

View file

@ -74,6 +74,7 @@ const PromptsTab = ({
},
argName,
value,
promptArgs,
);
}
};

View file

@ -84,7 +84,9 @@ export function useCompletionState(
}));
try {
console.log(state);
if (context !== undefined) {
delete context[argName];
}
const values = await handleCompletion(
ref,