Skip to content

Commit 0cb63e7

Browse files
committed
Fix minor formatting inconsistencies
- Remove extra blank line between imports in index.ts - Remove space inside empty catch callback braces - Fix trailing newline in prompt template causing double blank line
1 parent e46066a commit 0cb63e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { tool } from "@opencode-ai/plugin"
44
import { getConfig } from "./lib/config"
55
import { Logger } from "./lib/logger"
66
import { Janitor, type SessionStats } from "./lib/janitor"
7-
87
import { checkForUpdates } from "./lib/version-checker"
98

109
/**
@@ -149,7 +148,7 @@ const plugin: Plugin = (async (ctx) => {
149148
})
150149

151150
// Check for updates on launch (fire and forget)
152-
checkForUpdates(ctx.client, logger).catch(() => { })
151+
checkForUpdates(ctx.client, logger).catch(() => {})
153152

154153
// Show migration toast if config was migrated (delayed to not overlap with version toast)
155154
if (migrations.length > 0) {

lib/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function buildAnalysisPrompt(
119119

120120
// Build optional context section if reason provided
121121
const reasonContext = reason
122-
? `\nContext: The AI has requested pruning with the following reason: "${reason}"\nUse this context to inform your decisions about what is most relevant to keep.\n`
122+
? `\nContext: The AI has requested pruning with the following reason: "${reason}"\nUse this context to inform your decisions about what is most relevant to keep.`
123123
: ''
124124

125125
return `You are a conversation analyzer that identifies obsolete tool outputs in a coding session.

0 commit comments

Comments
 (0)