fix: 移除 console.log 中的敏感信息(firstQuery 文本、payload 完整内容)
This commit is contained in:
@@ -1648,7 +1648,7 @@ const runGeneration = async ({ prompt, displayText, source = 'text', saveTheme }
|
||||
clarificationCard.value = null
|
||||
novelSessionId.value = ''
|
||||
firstQuery.value = text // 记住首次心愿,用于后续 followup 保存剧本
|
||||
console.log('[ScriptView] 设置 firstQuery:', { text, length: text.length })
|
||||
console.log('[ScriptView] 设置 firstQuery:', { length: text.length })
|
||||
pendingNextResponse.value = true // 标记等待下一个 assistant 响应
|
||||
resumeableSessionId.value = ''
|
||||
outlineFeedback.value = ''
|
||||
@@ -1693,7 +1693,7 @@ const handleShortNovelEvent = (event) => {
|
||||
const { type, session_id, payload = {} } = event
|
||||
const timestamp = Date.now()
|
||||
|
||||
console.log('[ScriptView] 收到事件:', { type, session_id, timestamp, payload })
|
||||
console.log('[ScriptView] 收到事件:', { type, session_id, timestamp })
|
||||
|
||||
if (session_id) novelSessionId.value = session_id
|
||||
|
||||
@@ -1783,7 +1783,6 @@ const submitClarification = (answer) => {
|
||||
answeringClarification.value = true
|
||||
console.log('[ScriptView] submitClarification:', {
|
||||
sessionId: novelSessionId.value,
|
||||
originalQuery: firstQuery.value,
|
||||
originalQueryLength: firstQuery.value?.length
|
||||
})
|
||||
currentStreamTask.value = followupStream({
|
||||
@@ -1803,7 +1802,6 @@ const confirmOutline = (msg) => {
|
||||
addResultMessage({ role: 'user', kind: 'text', content: '确认大纲' })
|
||||
console.log('[ScriptView] confirmOutline:', {
|
||||
sessionId: novelSessionId.value,
|
||||
originalQuery: firstQuery.value,
|
||||
originalQueryLength: firstQuery.value?.length
|
||||
})
|
||||
currentStreamTask.value = followupStream({
|
||||
@@ -1827,7 +1825,6 @@ const modifyOutline = (msg) => {
|
||||
addResultMessage({ role: 'user', kind: 'text', content: feedback })
|
||||
console.log('[ScriptView] modifyOutline:', {
|
||||
sessionId: novelSessionId.value,
|
||||
originalQuery: firstQuery.value,
|
||||
originalQueryLength: firstQuery.value?.length
|
||||
})
|
||||
currentStreamTask.value = followupStream({
|
||||
@@ -1856,7 +1853,6 @@ const resumeSession = () => {
|
||||
try {
|
||||
console.log('[ScriptView] resumeSession:', {
|
||||
sessionId: novelSessionId.value,
|
||||
originalQuery: firstQuery.value,
|
||||
originalQueryLength: firstQuery.value?.length
|
||||
})
|
||||
currentStreamTask.value = followupStream({
|
||||
|
||||
Reference in New Issue
Block a user