Skip to content

Commit b927b95

Browse files
backnotpropclaude
andcommitted
fix: trim workspace and folder in saveToOctarine before building URI
The UI checks workspace.trim().length > 0 but the server used raw values. Accidental whitespace in settings would cause Octarine saves to fail. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 96a2f0e commit b927b95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/server/integrations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@ export function generateOctarineFrontmatter(tags: string[]): string {
344344
*/
345345
export async function saveToOctarine(config: OctarineConfig): Promise<IntegrationResult> {
346346
try {
347-
const { plan, workspace, folder } = config;
347+
const { plan } = config;
348+
const workspace = config.workspace.trim();
349+
if (!workspace) return { success: false, error: "Workspace is required" };
350+
const folder = config.folder.trim() || 'plannotator';
348351

349352
const filename = generateFilename(plan);
350353
// Strip .md — Octarine auto-adds it

0 commit comments

Comments
 (0)