Skip to content

Conversation

@yk2012
Copy link
Contributor

@yk2012 yk2012 commented Oct 30, 2025

image

import { parseSlashCommand } from '@/utils/slashCommand';
import { countTokens } from '@/utils/tokenCounter';
import { actions as clientActions } from './client';
import * as context from './context';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

别用 * as state as xx 就行了

{
role: 'user',
content: message,
attachedContexts: [...context.state.attachedContexts],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有测试消息恢复和对终端是否用影响吗 这里改成更具名的写法吧 理论上 prompt 应该带了相关内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants