MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / reset

Method reset

src/tools/shell_session.js:258–263  ·  view source on GitHub ↗

* Reset the shell — kill the current process and spawn a fresh one. * Useful when the shell gets stuck (e.g. an interactive prompt).

()

Source from the content-addressed store, hash-verified

256 * Useful when the shell gets stuck (e.g. an interactive prompt).
257 */
258 async reset() {
259 this.stop();
260 this._dead = false;
261 this.buffer = '';
262 return await this.start();
263 }
264
265 /**
266 * Stop the shell process. Idempotent.

Callers

nothing calls this directly

Calls 2

stopMethod · 0.95
startMethod · 0.95

Tested by

no test coverage detected