← Reddit

Bugs in Gamified Writing App

Reddit · DangerKaboodle · April 24, 2026
A developer created a gamified writing app with penalty and bonus mechanics designed to enhance focus, but the application experiences bugs with autosave functionality failing to save files locally and the saveProgress() function losing session data between sessions. The application incorrectly displays as a fresh session despite being installed as session five, with no persistent progress retained from previous uses, and the developer seeks debugging guidance that avoids complete code rewrites from Claude.

Detailed Analysis

A non-technical user's experience building a gamified writing application with Claude's assistance illustrates both the democratizing potential and the practical limitations of using large language models as development partners. The user, self-described as "uneducated about making apps," successfully leveraged Claude to construct a feature-complete desktop writing tool — one incorporating game mechanics such as bonus and cursed words, randomized per-session challenges, and penalty/reward systems — achieving approximately 98% of their intended vision without formal programming knowledge. The project was structured carefully, breaking development into incremental steps and validating against a basic index.html before compiling through npm, demonstrating a methodical approach that partially compensated for the user's lack of technical background.

Two substantive bugs remain unresolved. The first involves autosave functionality: the application reports that it is saving locally to a .txt file, but no file is actually being written to disk, even though .docx export operates correctly. This distinction suggests the autosave routine is either silently failing — possibly due to file system permission issues in the compiled .exe environment — or the save confirmation logic is decoupled from the actual write operation, producing false positive feedback. The second bug concerns `saveProgress()`, which is responsible for persisting cross-session writing progress while simultaneously managing a random seed generator for per-session gameplay variables. The video evidence shows the application reverting to a "new session" state on what should be session five, indicating that either the persistence mechanism is overwriting saved state with default values, or the session-detection logic is failing to correctly read previously stored data on launch.

A particularly instructive dimension of the user's account involves the challenge of targeted code editing with Claude. When attempting to fix a discrete issue — background image behavior — Claude responded by rewriting the entire codebase rather than making a surgical edit, introducing regression risk and complicating version control for a non-technical user with no clear diff strategy. This behavior reflects a known tendency in large language models to optimize for coherent, complete outputs rather than minimal-change patches, especially when the full codebase is provided as context. The model prioritizes internal consistency across the whole file over the user's implicit constraint of preserving untouched code. Prompt engineering strategies — such as explicitly instructing the model to return only the modified function, specifying line numbers, or using diff-style output formats — can mitigate this, but these techniques are not intuitive to users without development experience.

This case sits within a broader and rapidly expanding pattern of "vibe coding," a term describing the practice of building functional software through iterative natural language prompting rather than direct code authorship. Claude and similar models have substantially lowered the barrier to entry for software creation, enabling users to produce installable desktop applications with complex logic. However, the debugging phase exposes a structural asymmetry: while initial generation benefits from the model's ability to synthesize a coherent whole, debugging requires precision, context-awareness about what should not change, and an understanding of runtime environments — capabilities that are harder to reliably elicit through prompting alone. The user's compiled .exe context adds further complexity, since behaviors in a packaged Electron or similar environment often diverge from development-mode behavior, particularly around file system access and path resolution, issues that Claude may not adequately anticipate without explicit prompting about the deployment target.

Anthropic's broader trajectory makes this user experience particularly relevant. The company's expansion into agentic and computer-use features — including Claude's reported ability as of March 2026 to autonomously build, test, and fix bugs within desktop environments — suggests that the gap between generation and reliable debugging assistance is an active area of development. The friction this user encountered, specifically an AI that cannot reliably perform scoped edits without global rewrites, represents one of the more pressing unsolved challenges in LLM-assisted software development. As non-technical users increasingly rely on Claude and similar tools to produce production-adjacent software, the demand for models that can reason precisely about change locality, runtime context, and state persistence will only intensify, making the shortcomings documented in this account directly relevant to the next generation of AI coding assistance design.

Read original article →