fix: Spec editor now reads/writes from .automaker directory

The spec editor was using the wrong path for the app_spec.txt file.
Updated to use ${projectPath}/.automaker/app_spec.txt instead of
${projectPath}/app_spec.txt to match the standard .automaker directory
structure used by other components.

Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Cody Seibert
2025-12-09 02:09:38 -05:00
parent 30caa3112b
commit b02b346377
2 changed files with 34 additions and 68 deletions

View File

@@ -20,7 +20,7 @@ export function SpecView() {
setIsLoading(true);
try {
const api = getElectronAPI();
const result = await api.readFile(`${currentProject.path}/app_spec.txt`);
const result = await api.readFile(`${currentProject.path}/.automaker/app_spec.txt`);
if (result.success && result.content) {
setAppSpec(result.content);
@@ -44,7 +44,7 @@ export function SpecView() {
setIsSaving(true);
try {
const api = getElectronAPI();
await api.writeFile(`${currentProject.path}/app_spec.txt`, appSpec);
await api.writeFile(`${currentProject.path}/.automaker/app_spec.txt`, appSpec);
setHasChanges(false);
} catch (error) {
console.error("Failed to save spec:", error);
@@ -92,7 +92,7 @@ export function SpecView() {
<div>
<h1 className="text-xl font-bold">App Specification</h1>
<p className="text-sm text-muted-foreground">
{currentProject.path}/app_spec.txt
{currentProject.path}/.automaker/app_spec.txt
</p>
</div>
</div>