[BUG]
Environment
- Platform (select one):
- [ x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: <!-- output of
claude --version-->
claude --version
⎿ CLI 0.4.5 (57a92e5d)
⎿ Claude Code 0.7.0
- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 --> macOS 15.4 (24E248)
- Terminal: <!-- e.g. iTerm2, Terminal App --> Terminal.app
Bug Description
Requesting Claude to create a swift app for testing purposes. Going around in circles with syntax errors, clearing the syntax errors and creating more syntax errors. Then when asked to fix, the changes are reverted to the old code with the original syntax errors.
From Claude:
I apologize for the confusion and inconsistency in my changes. You're absolutely right that I've been
switching back and forth between different approaches, which has led to wasted effort and additional
costs.
The issue stems from misunderstanding the context type in different parts of the code. In some places
we need context.state.isRunning and in others just context.isRunning depending on the context type
being used.
I should have taken a more methodical approach to identify the correct pattern for each part of the
code rather than making incremental changes that sometimes contradicted previous changes.
Steps to Reproduce
- Please create and update files as necessary. This is a app being build for testing ourposes only. I
want to present a countdown timer on screen that I can change from 10 minutes to 1 minute that also
shows seconds. I need a start button and I need to see the timer count down, by second. Next the app
needs the appropriate widget so that when the iphone is locked the widget is displayed and you can see
the countdown proceeding. On timer completion a notification sould be sent. It would be great if this
was implemented in a TimerManager. The app shoudl be configured with appropriate OS Background
requirements. The app needs to support LiveActivity for display on the lock screen of the iPhone.
- Syntax errors are created in the generation. When asked to fix this error... ........ /TimerLiveActivity.swift:102:28 Value of type 'TimerAttributes.ContentState' has no member 'state' the change is made along with others... the others have errors. This one is fixed.
- When I ask it to fix the other errors, it reverts this change.
Expected Behavior
No syntax errors at build time.
Actual Behavior
Syntax errors at build time.
Additional Context
Application being created is for testing purposes. It is a swift application built on the latest OS, latest Xcode - no beta software.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗