Settings

Theme

Simple GitHub Issue Handled(?) By Copilot Workspace

github.com

1 points by sadrasabouri · 1 comment

Reader

1 thread
sadrasabouriOP

Today I got access to the new GitHubNext product, Copilot Workspace. I decided to test it on an old tiny Python package I developed three years ago for fun. The library is meant to simulate random walks. At that time I opened an issue for handling dead-end cases by randomly jumping to new states. Today I used the same issue for the starter. You can see the results of Copilot Workspace.

Caveats: 1. It looks very neat 2. It took nearly 5 minutes to come up with the solution after specification, planning, and then opening a pull request 3. the proposed solution is not actually true. Although it catches a valid case by checking if there is a row in the transaction matrix summed up to 1, this case is already prevented in `__init__`. A more plausible solution would be to check if the current state has a diagonal 1 in the transition matrix, which results in the random walker going back to the same state after that.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection