feat(context optimization):improved context management and redused chat overhead

This commit is contained in:
Anirban Kar
2024-12-07 15:58:13 +05:30
parent 2af32b0333
commit ea5c6244a6
5 changed files with 107 additions and 10 deletions

View File

@@ -23,14 +23,14 @@ const messageParser = new StreamingMessageParser({
logger.trace('onActionOpen', data.action);
// we only add shell actions when when the close tag got parsed because only then we have the content
if (data.action.type !== 'shell') {
if (data.action.type === 'file') {
workbenchStore.addAction(data);
}
},
onActionClose: (data) => {
logger.trace('onActionClose', data.action);
if (data.action.type === 'shell') {
if (data.action.type !== 'file') {
workbenchStore.addAction(data);
}