Skip to content

Stop pomodoro mode after final cycle completes#42

Merged
PranavPurwar merged 2 commits into
mainfrom
copilot/fix-pomodoro-reset-issue
Jan 29, 2026
Merged

Stop pomodoro mode after final cycle completes#42
PranavPurwar merged 2 commits into
mainfrom
copilot/fix-pomodoro-reset-issue

Conversation

Copilot AI commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Pomodoro sessions should end cleanly after the configured number of cycles instead of restarting or continuing when the screen turns off. This ensures the mode fully exits once all cycles are finished.

  • Pomodoro completion handling
    • Clear pomodoro mode and persisted cycle state when the final phase completes to prevent automatic restart.
if (nextPhase.isComplete) {
    prefs.edit {
        putBoolean("pomodoro_mode", false)
        remove("pomodoro_current_cycle")
    }
    endSession()
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Pomodoro timer keep resetting or stop when screen off #41
When all the "cycles" have completed, stop pomodoro mode, rather than restarting it


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: PranavPurwar <75154889+PranavPurwar@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix pomodoro timer resetting when screen turns off Stop pomodoro mode after final cycle completes Jan 29, 2026
Copilot AI requested a review from PranavPurwar January 29, 2026 13:55
@PranavPurwar PranavPurwar marked this pull request as ready for review January 29, 2026 14:00
@PranavPurwar PranavPurwar merged commit 4f21878 into main Jan 29, 2026
@PranavPurwar PranavPurwar deleted the copilot/fix-pomodoro-reset-issue branch January 29, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants