File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
88import db from '@codebuff/common/db/index'
99import * as schema from '@codebuff/common/db/schema'
10+ import { getErrorObject } from '@codebuff/common/util/error'
1011import { ensureEndsWithNewline } from '@codebuff/common/util/file'
1112import { generateCompactId } from '@codebuff/common/util/string'
1213import { eq } from 'drizzle-orm'
@@ -31,7 +32,6 @@ import type {
3132} from '@codebuff/common/actions'
3233import type { ClientMessage } from '@codebuff/common/websockets/websocket-schema'
3334import type { WebSocket } from 'ws'
34- import { getErrorObject } from '@codebuff/common/util/error'
3535
3636/**
3737 * Sends an action to the client via WebSocket
@@ -147,7 +147,7 @@ const onPrompt = async (
147147 }
148148
149149 if ( prompt ) {
150- logger . info ( `USER INPUT: ${ prompt } ` )
150+ logger . info ( { prompt } , `USER INPUT: ${ prompt . slice ( 0 , 100 ) } ` )
151151 trackEvent ( AnalyticsEvent . USER_INPUT , userId , {
152152 prompt,
153153 promptId,
You can’t perform that action at this time.
0 commit comments