Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Commit 74b5d1b

Browse files
koki-developclaude
andcommitted
fix: Adjust cat behavior timings
- Reduce thinking time from 300-1300ms to 300-800ms for faster responses - Increase file editing probability from 20% to 30% 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c8eb645 commit 74b5d1b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/cat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class Cat {
239239
}
240240

241241
private getRandomThinkingTime(): number {
242-
return Math.floor(Math.random() * 1000) + 300; // 300-1300ms
242+
return Math.floor(Math.random() * 500) + 300; // 300-800ms
243243
}
244244

245245
async response(message: string): Promise<CatResponse> {
@@ -249,8 +249,8 @@ export class Cat {
249249
const emotion = this.detectEmotion(message);
250250
const catText = this.getRandomResponse(emotion);
251251

252-
// Execute file editing with random probability (20% chance)
253-
const shouldEditFile = Math.random() < 0.2;
252+
// Execute file editing with random probability (30% chance)
253+
const shouldEditFile = Math.random() < 0.3;
254254

255255
if (shouldEditFile) {
256256
const diff = await this.fileEditor.edit();

0 commit comments

Comments
 (0)