Skip to content

Commit

Permalink
don't show tool output as markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Nov 26, 2024
1 parent 2875302 commit c5feb3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/desktop/src/components/GooseMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function GooseMessage({ message, metadata, messages, append }: Go
</div>
)}

{message.content && (
{!message.toolInvocations && message.content && (
<div className="bg-goose-bubble max-w-[100%] overflow-hidden text-white rounded-2xl p-4 mb-[16px]">
<ReactMarkdown className="prose prose-xs">{message.content}</ReactMarkdown>
</div>
Expand Down
15 changes: 14 additions & 1 deletion ui/desktop/src/goosed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'node:path';
import { spawn } from 'child_process';
import { existsSync } from 'fs';
import log from './utils/logger';
import os from 'node:os';

// Start the goosed binary
export const start = (app) => {
Expand All @@ -26,7 +27,19 @@ export const start = (app) => {
return;
}

const goosedProcess = spawn(goosedPath);
const homeDir = os.homedir();

// Optional: Ensure the home directory exists (it should, but for safety)
if (!existsSync(homeDir)) {
log.error(`Home directory does not exist: ${homeDir}`);
return;
}

console.log("Starting goosed in: ", homeDir);

// Spawn the goosed process with the user's home directory as cwd
const goosedProcess = spawn(goosedPath, [], { cwd: homeDir });


goosedProcess.stdout.on('data', (data) => {
log.info(`goosed stdout: ${data.toString()}`);
Expand Down

0 comments on commit c5feb3a

Please sign in to comment.