Skip to content

Conversation

@BrunoGeorgevich
Copy link

Type of change

Fix

Purpose of the PR

This PR introduces a sleep duration before executing the Ctrl+C command. This is to ensure that the clipboard has sufficient time to update with the desired content, preventing issues where the copy operation might fail due to the command being issued too quickly.

Changes overview

  • src/main.py

Issues Related

#195

Ensure the clipboard has sufficient time to update by adding a sleep duration before executing the ctrl+c command.
Copy link

@naveenkumarg-oss naveenkumarg-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows 11, I have consistently encountered an issue where the clipboard is empty. I can confirm that this change resolves the problem.

@mreduar
Copy link

mreduar commented Aug 12, 2025

@theJayTea any updates on this?

@theJayTea
Copy link
Owner

theJayTea commented Aug 13, 2025

Hey everyone!

@BrunoGeorgevich, thanks so much for this PR, looks like it will fix issues for some people.

For the upcoming update, I have plans to add a “compatibility mode" toggle which does this and more.

This way, users for whom Writing Tools works fine already won't have the additional delay added to their experience, while users with issues get the compatibility mode with very safe timers (and maybe a removed "Ask your AI" chat mode to reduce the impact of the safe timers).

I haven’t been able to finish the upcoming update yet (and don’t think I can in the next 3 weeks :( ) as I'm currently in the process of moving to the US for my undergrad and have been super busy.

Even if I don’t end up merging this PR (as my compatibility mode implementation already takes care of it), I can still credit you in the contributors list if you'd like :)

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.

5 participants