Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chat/src/components/message-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function MessageList({ messages }: MessageListProps) {
{message.role !== "user" && message.content === "" ? (
<LoadingDots />
) : (
message.content.trim()
message.content.trimEnd()
)}
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions lib/httpapi/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ func SetupProcess(ctx context.Context, config SetupProcessConfig) (*termexec.Pro
os.Exit(1)
}

// Hack for sourcegraph amp to stop the animation.
_, err = process.Write([]byte(" \b"))
if err != nil {
return nil, err
}

// Handle SIGINT (Ctrl+C) and send it to the process
signalCh := make(chan os.Signal, 1)
signal.Notify(signalCh, os.Interrupt, syscall.SIGTERM)
Expand Down