MCPcopy Create free account
hub / github.com/codeaashu/claude-code / unhook

Method unhook

src/server/web/public/terminal.js:4779–4789  ·  view source on GitHub ↗
(e3, t3 = true)

Source from the content-addressed store, hash-verified

4777 }
4778 put(e3, t3, i3) {
4779 if (this._active.length) for (let s3 = this._active.length - 1; s3 >= 0; s3--) this._active[s3].put(e3, t3, i3);
4780 else this._handlerFb(this._ident, "PUT", (0, s2.utf32ToString)(e3, t3, i3));
4781 }
4782 unhook(e3, t3 = true) {
4783 if (this._active.length) {
4784 let i3 = false, s3 = this._active.length - 1, r2 = false;
4785 if (this._stack.paused && (s3 = this._stack.loopPosition - 1, i3 = t3, r2 = this._stack.fallThrough, this._stack.paused = false), !r2 && false === i3) {
4786 for (; s3 >= 0 && (i3 = this._active[s3].unhook(e3), true !== i3); s3--) if (i3 instanceof Promise) return this._stack.paused = true, this._stack.loopPosition = s3, this._stack.fallThrough = false, i3;
4787 s3--;
4788 }
4789 for (; s3 >= 0; s3--) if (i3 = this._active[s3].unhook(false), i3 instanceof Promise) return this._stack.paused = true, this._stack.loopPosition = s3, this._stack.fallThrough = true, i3;
4790 } else this._handlerFb(this._ident, "UNHOOK", e3);
4791 this._active = o, this._ident = 0;
4792 }

Callers 2

resetMethod · 0.80
parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected