Skip to content

Commit a67c657

Browse files
committed
minpr
1 parent 65af5e8 commit a67c657

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libs/remix-ai-core/src/helpers/streamHandler.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ChatHistory } from '../prompts/chat';
21
import { JsonStreamParser, IAIStreamResponse } from '../types/types';
32

43
export const HandleSimpleResponse = async (response, cb?: (streamText: string) => void) => {
@@ -396,7 +395,14 @@ export const HandleOllamaResponse = async (aiResponse: IAIStreamResponse | any,
396395

397396
// Handle tool calls in Ollama format
398397
if (parsed.message?.tool_calls && tool_callback) {
398+
// Show tool execution status with spinner
399+
reasoning_cb?.('__TOOL_EXECUTING__');
400+
399401
const response = await tool_callback(parsed.message.tool_calls)
402+
403+
// Clear status - will be replaced by streaming content
404+
reasoning_cb?.('__TOOL_DONE__');
405+
400406
cb("\n\n");
401407
HandleOllamaResponse(response, cb, done_cb, reasoning_cb)
402408
return;

libs/remix-ai-core/src/remix-mcp-server/handlers/DeploymentHandler.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,10 @@ export class DeployContractHandler extends BaseToolHandler {
9898

9999
async execute(args: DeployContractArgs, plugin: Plugin): Promise<IMCPToolResult> {
100100
try {
101-
console.log("Executing deploy_contract with", args.file)
102101
// Get compilation result to find contract
103102
const compilerAbstract = await plugin.call('compilerArtefacts', 'getCompilerAbstract', args.file) as any;
104103
const data = getContractData(args.contractName, compilerAbstract)
105104
if (!data) {
106-
console.log("compilerAbstract", compilerAbstract)
107-
console.log("data", data)
108105
return this.createErrorResult(`Could not retrieve contract data for '${args.contractName}'`);
109106
}
110107

libs/remix-ui/remix-ai-assistant/src/components/remix-ui-remix-ai-assistant.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
387387

388388
// callback to update parsing status with minimum display time
389389
const updateParsingStatus = (status: string): Promise<void> => {
390-
console.log(status)
391390
setMessages(prev =>
392391
prev.map(m => (m.id === parsingId ? { ...m, content: `***${status}***` } : m))
393392
)
@@ -450,7 +449,6 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
450449
props.plugin.call('remixAI', 'setAssistantThrId', threadId)
451450
}
452451
)
453-
// Add MistralAI handler here if available
454452
break;
455453
case 'anthropic':
456454
HandleAnthropicResponse(
@@ -462,7 +460,6 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
462460
props.plugin.call('remixAI', 'setAssistantThrId', threadId)
463461
}
464462
)
465-
// Add Anthropic handler here if available
466463
break;
467464
case 'ollama':
468465
{

0 commit comments

Comments
 (0)