mulmoterminal 4.12.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +8 -2
  2. package/bin/cli-args.js +22 -1
  3. package/bin/mulmoterminal.js +12 -4
  4. package/common/keymap.ts +71 -9
  5. package/dist/assets/{AllPackages-CF2GkZ5g-CM3rGYLT.js → AllPackages-CF2GkZ5g-Bx8CoPCM.js} +1 -1
  6. package/dist/assets/{BaseConfiguration-CAwZOAki-DTVgM-PG.js → BaseConfiguration-CAwZOAki-D9gdRJqD.js} +1 -1
  7. package/dist/assets/{Element-BMI7Nj5w-B9RqTJwZ.js → Element-BMI7Nj5w-KlkWc31P.js} +1 -1
  8. package/dist/assets/{Entities-C8p_0jCn-B96BdpL6.js → Entities-C8p_0jCn-onU5WJ7w.js} +1 -1
  9. package/dist/assets/{FunctionList-YWk54TCy-Dftsdlhu.js → FunctionList-YWk54TCy-DyMwrJz0.js} +1 -1
  10. package/dist/assets/{InputJax-C5dj-ntL-CSXYU6NO.js → InputJax-C5dj-ntL-CVLHxRml.js} +1 -1
  11. package/dist/assets/{MathItem-YJvQL-XJ-Chiavq2E.js → MathItem-YJvQL-XJ-BvjVwJXF.js} +1 -1
  12. package/dist/assets/{MmlFactory-DuXYIgx8-DxABlOoL.js → MmlFactory-DuXYIgx8-Cm5_8EoF.js} +1 -1
  13. package/dist/assets/{Options-oARQeeuT-C2dJZp_J.js → Options-oARQeeuT-ChGWvCt4.js} +1 -1
  14. package/dist/assets/{OutputJax-DfUZNNCu-CFu_qe01.js → OutputJax-DfUZNNCu-DaG5nzzg.js} +1 -1
  15. package/dist/assets/{PrioritizedList-6lun1Xqd-B1IOIxus.js → PrioritizedList-6lun1Xqd-C5Db-F3s.js} +1 -1
  16. package/dist/assets/{Styles-BPXeoqzi-CENhg2Rx.js → Styles-BPXeoqzi-Cr0wNGcQ.js} +1 -1
  17. package/dist/assets/{TeXAtom-LHT3KFWH-DzkJr1zJ.js → TeXAtom-LHT3KFWH-CnXfZ5YO.js} +1 -1
  18. package/dist/assets/{abnfDiagram-VCTEODGH-DoYNjdBB-BTUEucbt.js → abnfDiagram-VCTEODGH-DoYNjdBB-DuoOQ-OB.js} +1 -1
  19. package/dist/assets/{arc-CqByPKkF-D8g1A1VD.js → arc-CqByPKkF-Dn1DCplU.js} +1 -1
  20. package/dist/assets/architecture-7GRP2DOG-CRS69XmP-CAHsIjH1.js +1 -0
  21. package/dist/assets/{architectureDiagram-5GKGNRK7-BhcT6qS5-CYwxV1T4.js → architectureDiagram-5GKGNRK7-BhcT6qS5-D7hRerxV.js} +1 -1
  22. package/dist/assets/{assistive-mml-DXJXho4o-DHaLYeaf.js → assistive-mml-DXJXho4o-DSJCOJrU.js} +1 -1
  23. package/dist/assets/{blockDiagram-I7D4REHJ-1Cng0Q4K-jkjSYlHD.js → blockDiagram-I7D4REHJ-1Cng0Q4K-CE_lDQNR.js} +1 -1
  24. package/dist/assets/{c4Diagram-7LVT6UL2-CAb9c8nc-CVBP7bme.js → c4Diagram-7LVT6UL2-CAb9c8nc-XwP1jrs8.js} +1 -1
  25. package/dist/assets/channel-BjESmYnj-CFiXT9oS.js +1 -0
  26. package/dist/assets/{chunk-2E4U76K2-CMyNbRyJ-CYlEPSYt.js → chunk-2E4U76K2-CMyNbRyJ-O4iHMJzN.js} +1 -1
  27. package/dist/assets/{chunk-4HAMMTFA-ChwfIAnF-DLsNAJrX.js → chunk-4HAMMTFA-ChwfIAnF-IqkmczzX.js} +1 -1
  28. package/dist/assets/{chunk-75Z2AOVW-CbPA0Zt_-PBrNY7F4.js → chunk-75Z2AOVW-CbPA0Zt_-BC4_pS5x.js} +1 -1
  29. package/dist/assets/{chunk-CLGD4ZFX-CVw8XHcp-XVRICqz6.js → chunk-CLGD4ZFX-CVw8XHcp-BD9KH9HS.js} +1 -1
  30. package/dist/assets/{chunk-DU6HZSFF-DuOx2LFX-B0VtwR-4.js → chunk-DU6HZSFF-DuOx2LFX-BfylIFCt.js} +1 -1
  31. package/dist/assets/{chunk-F27PBJKO-CgBMw9yN-AuWmarZj.js → chunk-F27PBJKO-CgBMw9yN-i2GWxi_8.js} +1 -1
  32. package/dist/assets/{chunk-GMAD6QVW-JTqlimUX-DjcFuvKJ.js → chunk-GMAD6QVW-JTqlimUX-DPF75NJ0.js} +1 -1
  33. package/dist/assets/{chunk-GVQU2GXP-D6ccB4DO-z0JsvnGC.js → chunk-GVQU2GXP-D6ccB4DO-CdSlCYYP.js} +1 -1
  34. package/dist/assets/{chunk-IMKFNOWR-ij1DSzMb-Cp2kQ6eT.js → chunk-IMKFNOWR-ij1DSzMb-bJpIateE.js} +1 -1
  35. package/dist/assets/{chunk-L3NEJ4N5-CUoAQVG2-B_R7YU1U.js → chunk-L3NEJ4N5-CUoAQVG2-Ckcm2qf9.js} +1 -1
  36. package/dist/assets/{chunk-OSK3NFVY-_VNbXQSu-D2nH_Zoh.js → chunk-OSK3NFVY-_VNbXQSu-CBZ1Oi9V.js} +1 -1
  37. package/dist/assets/{chunk-P2QGCYS3-B8lzOn3Y-CdxuD9Vb.js → chunk-P2QGCYS3-B8lzOn3Y-C_Ar_ICY.js} +1 -1
  38. package/dist/assets/{chunk-POPQ4Y6H-Bh_uOTmp-DV6DnZ5t.js → chunk-POPQ4Y6H-Bh_uOTmp-CZ0WDoDp.js} +1 -1
  39. package/dist/assets/{chunk-PWAF6VOD-DzjnfYSw-CbNtsCaS.js → chunk-PWAF6VOD-DzjnfYSw-CbrKSYcQ.js} +1 -1
  40. package/dist/assets/{chunk-SHT3W25Y-B8dQLS5w-CLbCDkIa.js → chunk-SHT3W25Y-B8dQLS5w-Be-9moIP.js} +1 -1
  41. package/dist/assets/{chunk-SVP7TREG-B6A-T8Th-C73GGvfo.js → chunk-SVP7TREG-B6A-T8Th-D-6Fw0Gs.js} +1 -1
  42. package/dist/assets/{chunk-TICWLB2K-C1kwD29l-kqi5-13I.js → chunk-TICWLB2K-C1kwD29l-Bn8XWgqO.js} +1 -1
  43. package/dist/assets/{chunk-TLUHSLCS-DYzGlCmi-Btk2TYDp.js → chunk-TLUHSLCS-DYzGlCmi-DuHf7zHR.js} +2 -2
  44. package/dist/assets/{chunk-XXDRQBXY-vg0kfC73-C9Og4olA.js → chunk-XXDRQBXY-vg0kfC73-C8I5TxHr.js} +1 -1
  45. package/dist/assets/classDiagram-ZZMXUADV-C7gP-pUH-w1B1j6lG.js +1 -0
  46. package/dist/assets/classDiagram-v2-VYDZK3BY-CUwV5k1F-w1B1j6lG.js +1 -0
  47. package/dist/assets/{cose-bilkent-JH36ORCC-NuHCtE3P-sgsTiDYm.js → cose-bilkent-JH36ORCC-NuHCtE3P-DbBSvoTS.js} +1 -1
  48. package/dist/assets/cynefin-OW5HDTMX-C4iKivN4-DCP-fZBd.js +1 -0
  49. package/dist/assets/{cynefinDiagram-5FMLGOSQ-CA7sro34-tAE4dFM9.js → cynefinDiagram-5FMLGOSQ-CA7sro34-g7Ohjffk.js} +1 -1
  50. package/dist/assets/{dagre-GXQ25YYZ-DOztjUR_-CfL9WIVN.js → dagre-GXQ25YYZ-DOztjUR_-B5EqH5BS.js} +1 -1
  51. package/dist/assets/{diagram-S7CK7UJ4-D_nsLfRT-DEQewt62.js → diagram-S7CK7UJ4-D_nsLfRT-BvfKDOXc.js} +1 -1
  52. package/dist/assets/{diagram-UQ7AKVKN-DNN-YX9a-Yh8uxMUF.js → diagram-UQ7AKVKN-DNN-YX9a-DKCPIpWb.js} +1 -1
  53. package/dist/assets/{diagram-VSXAHHWV--HENzo-l-0GmA-ovB.js → diagram-VSXAHHWV--HENzo-l-CDEKcryA.js} +1 -1
  54. package/dist/assets/{diagram-VX7I27RA-m2m9dROj-Cm-nFEG1.js → diagram-VX7I27RA-m2m9dROj-Cg2nqYjf.js} +1 -1
  55. package/dist/assets/{diagram-Z3DM3KII-D4qpv4-B-BVX8YbHU.js → diagram-Z3DM3KII-D4qpv4-B-cB7PWSYG.js} +1 -1
  56. package/dist/assets/{dist-D7zq5Vj0.js → dist-4YyNMfLL.js} +1 -1
  57. package/dist/assets/{dist-CfoBFpi6.js → dist-7-TNBgyu.js} +1 -1
  58. package/dist/assets/{dist-C8NBNY_7.js → dist-9C_qvTjj.js} +1 -1
  59. package/dist/assets/{dist-D24DAoP7.js → dist-CdTewfjF.js} +1 -1
  60. package/dist/assets/{dist-DeiyD9Ki-9JRmM4Z8.js → dist-DeiyD9Ki-CXfNTGOJ.js} +1 -1
  61. package/dist/assets/{ebnfDiagram-PWID7BFC-CAbv3sZg-D8QuBFYM.js → ebnfDiagram-PWID7BFC-CAbv3sZg-yedKuMgW.js} +1 -1
  62. package/dist/assets/{erDiagram-RLTQ6QDP-a10Ryh0--B1HSzwsq.js → erDiagram-RLTQ6QDP-a10Ryh0--DoRMdP9Q.js} +1 -1
  63. package/dist/assets/eventmodeling-NTZA5JFV-DhqtNS8R-BqMQQV9r.js +1 -0
  64. package/dist/assets/flowDiagram-HODETNUW-CAW_8mwY-BbCF3Xlq.js +1 -0
  65. package/dist/assets/{ganttDiagram-EL5Y4UJY-Cb7leeOC-keCW-kOD.js → ganttDiagram-EL5Y4UJY-Cb7leeOC-Dja2ctXX.js} +1 -1
  66. package/dist/assets/gitGraph-4MIJSDKK-S_Zs6Nxs-ZWRSFUk-.js +1 -0
  67. package/dist/assets/{gitGraphDiagram-WWUBYQGX-BCSbUpXG-DnzApyVv.js → gitGraphDiagram-WWUBYQGX-BCSbUpXG-atF7efoT.js} +1 -1
  68. package/dist/assets/{html-DdQiKDqM-B-K3Ykhn.js → html-DdQiKDqM-BoalOcqT.js} +1 -1
  69. package/dist/assets/index-B-BwWalM.css +1 -0
  70. package/dist/assets/{index-CeO5tt2R.js → index-DJqafXyu.js} +279 -279
  71. package/dist/assets/info-A6RAGUB7-4sGJh1is-B6ciYeff.js +1 -0
  72. package/dist/assets/{infoDiagram-27XIBGKW-BJRaZItN-Vim8p0oz.js → infoDiagram-27XIBGKW-BJRaZItN-BEIeq3GV.js} +1 -1
  73. package/dist/assets/{ishikawaDiagram-5VMMS53U-DHlFe__S-O3s46PZl.js → ishikawaDiagram-5VMMS53U-DHlFe__S-DQ_AsNwg.js} +1 -1
  74. package/dist/assets/{journeyDiagram-3NMN7TZE-BOIo3JM--BUdLRefU.js → journeyDiagram-3NMN7TZE-BOIo3JM--CnnYTo0O.js} +1 -1
  75. package/dist/assets/{kanban-definition-UXKFOSKX-yrQdG683-tuB3PItC.js → kanban-definition-UXKFOSKX-yrQdG683-x-RC3tkv.js} +1 -1
  76. package/dist/assets/{lengths-CvmPfBid-QuWmlAY4.js → lengths-CvmPfBid-10gEIzPK.js} +1 -1
  77. package/dist/assets/{line-DUb1TjJS-CIXFDmfK.js → line-DUb1TjJS-DShOBLG6.js} +1 -1
  78. package/dist/assets/{linear-xsuGWu5q-B0UqjTq4.js → linear-xsuGWu5q-D-IsIc-E.js} +1 -1
  79. package/dist/assets/{liteAdaptor-C0FQiOEx-Dd7ejALY.js → liteAdaptor-C0FQiOEx-CKOo0lvo.js} +1 -1
  80. package/dist/assets/{marp-eTHdUTCa.js → marp-ngiOtnIU.js} +1 -1
  81. package/dist/assets/{mathjax-DVEo4UYj-DR6bsbF5.js → mathjax-DVEo4UYj-DPhwOynN.js} +1 -1
  82. package/dist/assets/{mermaid-parser.core-fkjeiYO7-UP10Y-9g.js → mermaid-parser.core-fkjeiYO7-BwcekFOJ.js} +2 -2
  83. package/dist/assets/{mermaid.core-CZDx2Cyn-DW_Cfwmb.js → mermaid.core-CZDx2Cyn-CeJk12OP.js} +3 -3
  84. package/dist/assets/{mindmap-definition-YA3MSWOX-BpKAVyqs-BT2I6xrj.js → mindmap-definition-YA3MSWOX-BpKAVyqs-CSsgL9Ev.js} +1 -1
  85. package/dist/assets/{mo-CrlNnGXX-BbSsbziG.js → mo-CrlNnGXX-C7iwFKb3.js} +1 -1
  86. package/dist/assets/packet-AYTQ26CC-MQQyx8fI-C1uVptHd.js +1 -0
  87. package/dist/assets/{pegDiagram-XKGWAZYB-C7eG_Ohl-CwOHpMIE.js → pegDiagram-XKGWAZYB-C7eG_Ohl-DnQeEqS7.js} +1 -1
  88. package/dist/assets/pie-WAS4IAKB-CyaL5i_d-CvuBD4G5.js +1 -0
  89. package/dist/assets/{pieDiagram-E7YTZNPT-5f9wSfDR-BfiHzTle.js → pieDiagram-E7YTZNPT-5f9wSfDR-DemBN8Yf.js} +1 -1
  90. package/dist/assets/{quadrantDiagram-AXDQQJYC-mWeaOj5S-DmKj1SlO.js → quadrantDiagram-AXDQQJYC-mWeaOj5S-DJ33JkPA.js} +1 -1
  91. package/dist/assets/radar-RG4KPBEZ-DR-SsHDJ-CXZSNBN1.js +1 -0
  92. package/dist/assets/railroad-74A4TZTK-C2gqsOGX-BLUc9I7K.js +1 -0
  93. package/dist/assets/railroad-abnf-HS5TGJTU-Dpzw6P5u-CDyLVmSE.js +1 -0
  94. package/dist/assets/railroad-ebnf-LZEXJU2U-J_BuIrPo-BBzTDDwY.js +1 -0
  95. package/dist/assets/railroad-peg-WCYAUIDC-DzMStOR--Cljx_bWU.js +1 -0
  96. package/dist/assets/{railroadDiagram-O6MQD6OU-DJskhE7u-wtloi7bZ.js → railroadDiagram-O6MQD6OU-DJskhE7u-CwIUMhSD.js} +1 -1
  97. package/dist/assets/{requirementDiagram-BXWQKSXE-B5E0bU4h-FfOKAaTo.js → requirementDiagram-BXWQKSXE-B5E0bU4h-hoSDzLQJ.js} +1 -1
  98. package/dist/assets/{sankeyDiagram-P5KCCOFB-DS3AOTai-Ct9wlCuh.js → sankeyDiagram-P5KCCOFB-DS3AOTai-BZeF2KIM.js} +1 -1
  99. package/dist/assets/{sequenceDiagram-WJ2MYXX4-Bn2L9osv-CYfRdJtF.js → sequenceDiagram-WJ2MYXX4-Bn2L9osv-Bs7XPvuf.js} +1 -1
  100. package/dist/assets/{src-CLC0ddSd-BIuq0-nf.js → src-CLC0ddSd-DsNPBPD5.js} +1 -1
  101. package/dist/assets/{stateDiagram-D77RDMKH-DbtoW7HL-CDtw4W1S.js → stateDiagram-D77RDMKH-DbtoW7HL-n_W7QA2i.js} +1 -1
  102. package/dist/assets/stateDiagram-v2-MP3YSRHH-CX6RalKY-Dq9S-AUp.js +1 -0
  103. package/dist/assets/{svg-CaHU_sxA-CszaUDKG.js → svg-CaHU_sxA-eLTj-UFn.js} +1 -1
  104. package/dist/assets/{swimlanes-42K2YHIH-90h8w_3B-CQvXtcT-.js → swimlanes-42K2YHIH-90h8w_3B-PrSiGyln.js} +1 -1
  105. package/dist/assets/swimlanesDiagram-VR7AAH4N-49XH_TMr-y3IgDYmY.js +8 -0
  106. package/dist/assets/{tex-B1cONMvb-ChHo1cBg.js → tex-B1cONMvb-CwimKS8s.js} +1 -1
  107. package/dist/assets/{timeline-definition-24CTP7MA-Bx3KcICO-U9ql-I57.js → timeline-definition-24CTP7MA-Bx3KcICO-BeSkr_pz.js} +1 -1
  108. package/dist/assets/treeView-Q6P3EWNA-gFs854Sn-CnQVHjtu.js +1 -0
  109. package/dist/assets/treemap-WGGIJYW6-DGh_szUA-DdG0VnPJ.js +1 -0
  110. package/dist/assets/{vennDiagram-4TSXK5OY-DSexNe_H-BzdM6vG-.js → vennDiagram-4TSXK5OY-DSexNe_H-Cif5NoRB.js} +1 -1
  111. package/dist/assets/wardley-WFR3VGLG-BVLYL3gB-uwMZq6Py.js +1 -0
  112. package/dist/assets/{wardleyDiagram-VM6X3IG4-DesYYyZW-CFU64ptS.js → wardleyDiagram-VM6X3IG4-DesYYyZW-L-RyhMHN.js} +1 -1
  113. package/dist/assets/{xychartDiagram-S5SC5T6Z-dIt6pHWV-Dp9Unxs1.js → xychartDiagram-S5SC5T6Z-dIt6pHWV-Ct1J2Ggu.js} +1 -1
  114. package/dist/index.html +2 -2
  115. package/package.json +7 -7
  116. package/server/config/config-schema.ts +14 -2
  117. package/server/config/header-config.ts +13 -0
  118. package/server/config/header-resolve.ts +2 -0
  119. package/server/index.ts +17 -33
  120. package/server/infra/announce-listening.ts +140 -0
  121. package/server/infra/loopback-listener.ts +226 -25
  122. package/server/infra/tmux-routes.ts +7 -1
  123. package/server/infra/tmux.ts +46 -2
  124. package/server/session/pty-spawn.ts +14 -2
  125. package/server/skills/mulmoterminal-config/SKILL.md +10 -4
  126. package/server/skills/mulmoterminal-dirs/SKILL.md +1 -1
  127. package/server/skills/mulmoterminal-header/SKILL.md +58 -1
  128. package/server/skills/mulmoterminal-keys/SKILL.md +171 -6
  129. package/server/skills/mulmoterminal-notify/SKILL.md +5 -1
  130. package/server/skills/mulmoterminal-shared-app/SKILL.md +15 -4
  131. package/server/skills/mulmoterminal-shared-app/templates/design.md +5 -4
  132. package/server/skills/mulmoterminal-shared-app/templates/live-poll.md +1 -1
  133. package/server/skills/mulmoterminal-shared-app/templates/magazine.md +2091 -0
  134. package/dist/assets/architecture-7GRP2DOG-CRS69XmP-Ujv7TsXX.js +0 -1
  135. package/dist/assets/channel-BjESmYnj-BFm2Wbs0.js +0 -1
  136. package/dist/assets/classDiagram-ZZMXUADV-C7gP-pUH-BDpOwtPC.js +0 -1
  137. package/dist/assets/classDiagram-v2-VYDZK3BY-CUwV5k1F-BDpOwtPC.js +0 -1
  138. package/dist/assets/cynefin-OW5HDTMX-C4iKivN4-C8N8egm0.js +0 -1
  139. package/dist/assets/eventmodeling-NTZA5JFV-DhqtNS8R-G2GKHcUd.js +0 -1
  140. package/dist/assets/flowDiagram-HODETNUW-CAW_8mwY-DUShNtXL.js +0 -1
  141. package/dist/assets/gitGraph-4MIJSDKK-S_Zs6Nxs-AZ1aHKyD.js +0 -1
  142. package/dist/assets/index-T6iAhWWD.css +0 -1
  143. package/dist/assets/info-A6RAGUB7-4sGJh1is-BsYxYGyO.js +0 -1
  144. package/dist/assets/packet-AYTQ26CC-MQQyx8fI-CgY-ZvU6.js +0 -1
  145. package/dist/assets/pie-WAS4IAKB-CyaL5i_d-Bfo-rUMV.js +0 -1
  146. package/dist/assets/radar-RG4KPBEZ-DR-SsHDJ-ciBy6b1Q.js +0 -1
  147. package/dist/assets/railroad-74A4TZTK-C2gqsOGX-CHNvkyIP.js +0 -1
  148. package/dist/assets/railroad-abnf-HS5TGJTU-Dpzw6P5u-BRKL6bPY.js +0 -1
  149. package/dist/assets/railroad-ebnf-LZEXJU2U-J_BuIrPo-CgDH6pLR.js +0 -1
  150. package/dist/assets/railroad-peg-WCYAUIDC-DzMStOR--CiY5naOb.js +0 -1
  151. package/dist/assets/stateDiagram-v2-MP3YSRHH-CX6RalKY-hZ4fjyMZ.js +0 -1
  152. package/dist/assets/swimlanesDiagram-VR7AAH4N-49XH_TMr-DzHdUIfM.js +0 -8
  153. package/dist/assets/treeView-Q6P3EWNA-gFs854Sn-Ce_qY2Wq.js +0 -1
  154. package/dist/assets/treemap-WGGIJYW6-DGh_szUA-CDNn6UCI.js +0 -1
  155. package/dist/assets/wardley-WFR3VGLG-BVLYL3gB-CQexd8Yy.js +0 -1
package/README.md CHANGED
@@ -680,7 +680,9 @@ and open-on-GitHub (🌐, git repos). Setting `buttons` (at either level) **repl
680
680
  set** with your list (it is not merged on top), so listing your own — even a **shorter** one — is how
681
681
  you drop, reorder, or swap them.
682
682
  A button has an `id`, `label`, and a `run` of `"shell"` (run a command), `"input"` (send text to the
683
- agent), or `"open"`. An `open` button targets one of `url` / `reveal` (OS file manager) / `files`
683
+ agent), `"open"`, or `"action"` (act on the cell itself — `action: "restart"` ends the agent and
684
+ starts it again in the same cell on the same conversation, which is how an MCP / config / plugin
685
+ change takes effect; it costs a resume and asks nothing first). An `open` button targets one of `url` / `reveal` (OS file manager) / `files`
684
686
  (in-app explorer) / `view` (a built-in overlay) / `terminal` (a dir → a new cell running `$SHELL`,
685
687
  opened next to the current one) / `pr: true` (open the current branch's PR — the button is hidden when
686
688
  there's no open PR) / `pickFile: true` (OS file dialog → insert the path).
@@ -1400,7 +1402,11 @@ Favorited collections get their own toolbar buttons.
1400
1402
  grid — so you can flip between "see everything" and "focus on one" in a click. While
1401
1403
  zoomed, keys you bind walk the enlargement along the on-screen order without reaching for
1402
1404
  the mouse — **opt-in, nothing is bound by default**, since any bound key is taken from the
1403
- terminal underneath. Add a `keymap` to `~/.mulmoterminal/config.json`; see the
1405
+ terminal underneath. Press **Set up shortcuts…** in Settings → **Keyboard shortcuts** and an
1406
+ agent writes the `keymap` for you, checking each binding against your existing ones and the traps
1407
+ a browser or a Mac adds; that section also lists every action and the `send` row whether bound or not, including the
1408
+ [keys sent straight to the terminal](https://receptron.github.io/mulmoterminal/guide/en/config.html#keymap-send).
1409
+ To write it by hand, add a `keymap` to `~/.mulmoterminal/config.json` — see the
1404
1410
  [guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#keymap)
1405
1411
  for the syntax, the action list, and combinations a browser can never bind.
1406
1412
 
package/bin/cli-args.js CHANGED
@@ -191,6 +191,20 @@ export function launcherUrl(reachHost, port) {
191
191
  * TOP-LEVEL visit to the old origin can see it. A URL that has to be stable is therefore cheaper
192
192
  * to keep stable than to migrate.
193
193
  *
194
+ * SECOND, INDEPENDENT reason, and the one this comment was missing: Firebase gates
195
+ * `signInWithPopup` on the CALLING PAGE'S ORIGIN, against the authorized-domain list of the
196
+ * project — and RemoteHost's Google sign-in is exactly that call
197
+ * (`src/components/RemoteHostControl.vue`, against `mulmoserver` in `common/firebaseConfig.ts`).
198
+ * Reported on #1900: that project authorizes `localhost` and NOT `127.0.0.1`, checked in the
199
+ * console on 2026-08-28, which is why phone pairing could not sign in on 4.11.0 and can on
200
+ * 4.12.0. Not verified here — this repo cannot read that project's settings.
201
+ *
202
+ * It matters because the two reasons fail INDEPENDENTLY. Someone who solves the storage half —
203
+ * moves the grid layout server-side, say — would read the paragraph above as the whole
204
+ * justification and be free to change this string, and the first thing to break would be a
205
+ * feature nothing in `bin/` mentions. Changing the URL means adding the new loopback address to
206
+ * that authorized-domain list first.
207
+ *
194
208
  * Reachability is not the reason it is safe; #1834 is. `server/infra/loopback-listener.ts` makes
195
209
  * this server serve `127.0.0.1` in EVERY configuration — as the primary bind, or as a second
196
210
  * listener when the operator widens it — because eight local callers write that address as a
@@ -224,6 +238,13 @@ export function browserUrl(port) {
224
238
  * IT, and otherwise say plainly that we stepped aside — including where their layout went, since
225
239
  * a silent switch here is #1889 all over again for that one user.
226
240
  *
241
+ * Stepping aside costs more than the layout, and the note says so: on `http://127.0.0.1:<port>`
242
+ * RemoteHost's Google sign-in is refused as well, because Firebase checks the page's origin
243
+ * against its authorized domains and that project lists `localhost` only (#1900). This branch is
244
+ * a real degradation of the app rather than a cosmetic change of address, and the second failure
245
+ * would otherwise be found only by trying to pair a phone — which is the shape of #1889 again,
246
+ * one feature further along.
247
+ *
227
248
  * The probe cannot close the window, only narrow it: `::1` is free when asked, and unless the
228
249
  * server binds it (a `::1` or `::` bind), a stranger could still take it afterwards. That is the
229
250
  * same probe/bind race `isPortFree` already documents and accepts.
@@ -236,7 +257,7 @@ export function launchTarget(reachHost, port, localhostIsUnambiguous) {
236
257
  const checked = launcherUrl(reachHost, port);
237
258
  return {
238
259
  url: checked,
239
- note: `Something else is already listening on [::1]:${port}, so the browser is being sent to ${checked} — the address that was checked. If your layout and settings look empty, they are filed under http://localhost:${port}.`,
260
+ note: `Something else is already listening on [::1]:${port}, so the browser is being sent to ${checked} — the address that was checked. If your layout and settings look empty, they are filed under http://localhost:${port}, and the phone's Google sign-in works only there.`,
240
261
  };
241
262
  }
242
263
  const bound = reachHost === V4_LOOPBACK_CLIENTS_DIAL || reachHost === "::1";
@@ -478,16 +478,23 @@ function runServer(port, probedAddress, localhostIsUnambiguous, noOpen, cwd, onC
478
478
  // binding — that is #1876's fix and it stays. The URL asks "where does this user's browser
479
479
  // keep its state", and the only answer that does not empty the app is the one it has always
480
480
  // been given: see browserUrl.
481
- const beginReady = (reachHost) => {
481
+ // `serverSaysLocalhostIsOurs` is the child's own report and OUTRANKS the probe when present.
482
+ // The probe ran before the child existed, so it cannot see a process that claimed EITHER
483
+ // loopback during the boot — only the child knows how its own binds went (Codex, PR #1903).
484
+ // `undefined` means the child said nothing about it, and then the probe is all there is.
485
+ const beginReady = (reachHost, serverSaysLocalhostIsOurs) => {
482
486
  if (readyStarted) return;
483
487
  readyStarted = true;
484
- const { url, note } = launchTarget(reachHost, port, localhostIsUnambiguous);
488
+ const localhostIsOurs = localhostIsUnambiguous && serverSaysLocalhostIsOurs !== false;
489
+ const { url, note } = launchTarget(reachHost, port, localhostIsOurs);
485
490
  cancelReady = waitUntilReady(port, () => announceReady(url, note, noOpen), { host: reachHost });
486
491
  };
487
492
  server.on("message", (msg) => {
488
493
  if (!isRecordLike(msg) || msg.type !== "listening" || typeof msg.address !== "string") return;
489
494
  const reported = launcherReachHost(msg.address);
490
- if (reported) beginReady(reported);
495
+ // Absent rather than false when the field is missing, so "an older child said nothing" and
496
+ // "this child could not take it" stay different answers.
497
+ if (reported) beginReady(reported, typeof msg.localhostIsOurs === "boolean" ? msg.localhostIsOurs : undefined);
491
498
  });
492
499
  // The fallback runs ONLY on an address we can name without asking anyone. Guessing from a
493
500
  // NAME is what the child's report exists to replace, and a fallback that guessed anyway just
@@ -499,7 +506,8 @@ function runServer(port, probedAddress, localhostIsUnambiguous, noOpen, cwd, onC
499
506
  // into something connectable; BIND_HOST is the last resort and returns null for a name.
500
507
  const guessed = probedAddress ? launcherReachHost(probedAddress) : launcherReachHost(BIND_HOST);
501
508
  const fallbackReady = setTimeout(() => {
502
- if (guessed) return beginReady(guessed);
509
+ // No report, so no v6 answer either — the probe is all this path ever had.
510
+ if (guessed) return beginReady(guessed, undefined);
503
511
  if (!readyStarted)
504
512
  log(`Started, but ${BIND_HOST} is a name and the server has not reported which address it bound — not guessing. It may still be starting.`);
505
513
  }, REPORTED_ADDRESS_GRACE_MS);
package/common/keymap.ts CHANGED
@@ -21,6 +21,7 @@ export const KEYMAP_ACTIONS = [
21
21
  "terminal-new-here",
22
22
  "terminal-new-adjacent",
23
23
  "terminal-close",
24
+ "terminal-restart",
24
25
  "copy",
25
26
  "paste",
26
27
  ] as const;
@@ -40,6 +41,16 @@ export const isKeymapAction = (value: unknown): value is KeymapAction => typeof
40
41
  // ^C. A handler that has already swallowed the key cannot change its mind.
41
42
  export const TERMINAL_SCOPED_ACTIONS: readonly KeymapAction[] = ["copy", "paste"];
42
43
 
44
+ // Actions that act ON a terminal and so need one the grid can name. The enlarged cell is the only
45
+ // such state the grid has, so un-zoomed these do nothing rather than guessing which cell was meant.
46
+ // `terminal-new` is exempt (appending needs no subject), and so are `zoom-toggle` / `next-attention`,
47
+ // which pick the cell themselves — that is what makes them the keyboard's way INTO the zoom.
48
+ //
49
+ // Here rather than beside gridShortcutFor because BOTH sides decide from it: the grid dispatches on
50
+ // it, and validateKeymap has to know that these decline the key — the handler returns WITHOUT
51
+ // stopping the event, so a `send` on the same keystroke fires instead (codex on #1906).
52
+ export const NEEDS_A_CURRENT_TERMINAL: readonly KeymapAction[] = ["zoom-next", "zoom-prev", "terminal-new-adjacent", "terminal-close", "terminal-restart"];
53
+
43
54
  // A key that puts BYTES into the focused terminal instead of running an app action (#1005) —
44
55
  // Cmd+Right as Ctrl+E for end-of-line, say, or Alt+B for word-back.
45
56
  //
@@ -164,9 +175,17 @@ export function validateKeymap(input: unknown): KeymapProblem[] {
164
175
  return [{ action: "keymap", binding: input, reason: "`keymap` must be an object of action -> key binding", fatal: true }];
165
176
  }
166
177
  const entries = Object.entries(input);
167
- // A claim on one keystroke. `rank` is DISPATCH order, so the winner can be named: every action
168
- // outranks every send binding, because the grid's handler runs in the capture phase and stops
169
- // the event before the terminal — see sendBytesFor.
178
+ // A claim on one keystroke. `rank` is DISPATCH order, so the winner can be named — with ONE
179
+ // exception, which is why `kind` is carried alongside it.
180
+ //
181
+ // Most actions are claimed by the grid in the capture phase, before the terminal sees the key.
182
+ // `copy` and `paste` are not (TERMINAL_SCOPED_ACTIONS — gridShortcutFor skips them); they are
183
+ // decided inside the terminal by clipboardActionFor, which runs ahead of the send handler. So
184
+ // `paste` still outranks a send.
185
+ //
186
+ // `copy` does NOT, unconditionally: clipboardActionFor returns null when nothing is selected —
187
+ // deliberately, so Ctrl+C stays an interrupt — and the same-key send fires then. Naming `copy`
188
+ // as the winner there tells the user the opposite of what they will see half the time (#1901).
170
189
  const bound = new Map<string, Claim[]>();
171
190
  const claim = (parsed: KeyBinding, entry: Claim): void => {
172
191
  const key = canonicalBinding(parsed); // as PARSED: "Shift+PageUp" and "shift+pageup" are one keystroke
@@ -182,7 +201,7 @@ export function validateKeymap(input: unknown): KeymapProblem[] {
182
201
  if (parsed === null) {
183
202
  return [{ action, binding, reason: 'unparseable key binding — expected e.g. "PageDown" or "Shift+PageUp"', fatal: true }];
184
203
  }
185
- claim(parsed, { label: action, binding, rank: KEYMAP_ACTIONS.indexOf(action) });
204
+ claim(parsed, { label: action, binding, rank: KEYMAP_ACTIONS.indexOf(action), kind: "action" });
186
205
  return [];
187
206
  });
188
207
  return [...problems, ...duplicateWarnings(bound)];
@@ -192,6 +211,9 @@ interface Claim {
192
211
  label: string;
193
212
  binding: string;
194
213
  rank: number;
214
+ /** Which side of the dispatch this is. `copy` vs a `send` is the one collision whose winner
215
+ * depends on runtime state, and that cannot be read back off `label`. */
216
+ kind: "action" | "send";
195
217
  }
196
218
 
197
219
  // Everything wrong with the `send` list, claiming the keystrokes that are well-formed.
@@ -214,7 +236,7 @@ function sendProblems(input: unknown, claim: (parsed: KeyBinding, entry: Claim)
214
236
  return [{ action: label, binding: entry.key, reason: "`bytes` is empty — the key would be taken from the terminal and nothing sent", fatal: true }];
215
237
  }
216
238
  // Ranked after every action, matching who actually wins (see the `bound` comment above).
217
- claim(parsed, { label, binding: entry.key, rank: KEYMAP_ACTIONS.length + i });
239
+ claim(parsed, { label, binding: entry.key, rank: KEYMAP_ACTIONS.length + i, kind: "send" });
218
240
  return [];
219
241
  });
220
242
  }
@@ -229,15 +251,55 @@ function duplicateWarnings(bound: Map<string, Claim[]>): KeymapProblem[] {
229
251
  if (claims.length < 2) return [];
230
252
  const [winner, ...losers] = [...claims].sort((a, b) => a.rank - b.rank);
231
253
  if (!winner) return []; // unreachable: claims.length >= 2 was checked above
232
- return losers.map(({ label, binding }) => ({
233
- action: label,
234
- binding,
235
- reason: `same keystroke as \`${winner.label}\` — only \`${winner.label}\` will fire`,
254
+ const runnerUp = fallthroughWinner(winner, losers);
255
+ return losers.map((loser) => ({
256
+ action: loser.label,
257
+ binding: loser.binding,
258
+ reason: collisionReason(winner, runnerUp, loser),
236
259
  fatal: false,
237
260
  }));
238
261
  });
239
262
  }
240
263
 
264
+ // An action that DECLINES the keystroke in some runtime state, letting it fall through to a `send`
265
+ // binding on the same key. Naming such an action as the sole winner is wrong whenever the user is
266
+ // in the other state, which is the whole of #1901.
267
+ //
268
+ // Two handlers decline, for the same structural reason — each returns WITHOUT stopping the event:
269
+ //
270
+ // - `copy` with no selection (clipboardActionFor), deliberately, so Ctrl+C stays interrupt.
271
+ // - NEEDS_A_CURRENT_TERMINAL with nothing enlarged (gridShortcutFor).
272
+ //
273
+ // `acts` and `otherwise` are the two halves of what the user is told.
274
+ interface StandsAside {
275
+ acts: string;
276
+ otherwise: string;
277
+ }
278
+ const WHILE_ENLARGED: StandsAside = { acts: "only while a terminal is enlarged", otherwise: "when none is" };
279
+ const standsAside = (label: string): StandsAside | null => {
280
+ if (label === "copy") return { acts: "only while text is selected", otherwise: "when nothing is" };
281
+ return NEEDS_A_CURRENT_TERMINAL.some((action) => action === label) ? WHILE_ENLARGED : null;
282
+ };
283
+
284
+ // The claim that fires when the winner stands aside, or null when the winner takes every state.
285
+ //
286
+ // Only a send can be this one. `actionForKey` returns the lowest-ranked bound action and stops, so
287
+ // a second ACTION on the key is never reached in either state; and `sendBytesFor` takes the FIRST
288
+ // match, so only the first send is. A conditional collision therefore has exactly TWO reachable
289
+ // claims and every later one is unreachable in BOTH states.
290
+ const fallthroughWinner = (winner: Claim, losers: Claim[]): Claim | null =>
291
+ winner.kind === "action" && standsAside(winner.label) !== null ? (losers.find((claim) => claim.kind === "send") ?? null) : null;
292
+
293
+ // What the user will actually see, which is not always a single winner.
294
+ const collisionReason = (winner: Claim, runnerUp: Claim | null, loser: Claim): string => {
295
+ const aside = standsAside(winner.label);
296
+ if (runnerUp === null || aside === null) return `same keystroke as \`${winner.label}\` — only \`${winner.label}\` will fire`;
297
+ if (loser === runnerUp) {
298
+ return `same keystroke as \`${winner.label}\` — \`${winner.label}\` acts ${aside.acts}, and \`${loser.label}\` fires ${aside.otherwise}`;
299
+ }
300
+ return `same keystroke as \`${winner.label}\` and \`${runnerUp.label}\` — \`${winner.label}\` acts ${aside.acts} and \`${runnerUp.label}\` fires ${aside.otherwise}, so \`${loser.label}\` never fires`;
301
+ };
302
+
241
303
  // A binding's identity as a keystroke, for spotting two actions that claim the same one.
242
304
  const canonicalBinding = (b: KeyBinding): string => `${b.shift ? "S" : ""}${b.alt ? "A" : ""}${b.ctrl ? "C" : ""}${b.meta ? "M" : ""}|${b.key}`;
243
305