Sorry for being unclear. The Espruino Web IDE connects to the Puck.js over Bluetooth. The left side window of the IDE is essentially a terminal within which you can interact with the Puck directly, enter commands, type and run a short program, read output from a program running in the Puck, etc. After resetting the Puck by removing the battery I can connect to it using the web IDE and interact with it successfully using the left side window. For example, if I type reset() on the keyboard, the Puck will reset and display its firmware version number and return to a prompt. If I type dump(), its program and global state will be displayed, etc. So this is all normal.
What I have observed is that after I have connected to the Puck by running one or more Puck examples within DroidScript, when I subsequently connect to the Puck using the web IDE I can connect just fine, but as I type in the left side window the Puck is no longer accepting and/or responding to keyboard input. But as I mentioned the left side window does appear to be outputting text from the Puck because if I press the button, BTN:1 and BTN:0 are displayed. I assume this is because of the program that was sent from DroidScript to the Puck. If I disconnect the web IDE I can again run DroidScript programs using the Puck and everything continues to work fine. But if I again connect the web IDE, the Puck does not accept and/or respond to keyboard input. This pattern continues until I power cycle the Puck by removing the battery.
My thought, and the reason for my inquiry, is maybe the program that is sent from DroidScript to the Puck to enable its interaction might still be running, or perhaps left the Puck in a state that affects subsequent access from the web IDE until it is reset by removing the battery. I did try a soft reset by using DroidScript to send a reset() command, and I also tried app.reset() but that didn't work. I confirmed the reset worked (turned on an led, waited 1 second, reset(), led goes out) but the problem with the web IDE remained.
I hope this is clearer. Thanks!!! --D