Commit f5db8f0
emits sanitized (no model names) + launch position args + polish dampen
Operator 2026-05-18 chat exposed four bugs; this commit pairs with
the prior mios-windows launch fix to close all of them.
1. EMITS: status line was still showing OLD English narrative +
model names ("MiOS-Agent: refining via qwen2.5-coder:7b (CPU)...")
because the GLOBAL SWEEP commit edited the on-disk pipe file
but never re-ran mios-owui-install-pipe -- OWUI loads pipes
from function.content in webui.db, not from disk per-request.
Two-step fix:
* Sanitized the emit strings further: dropped model-name
interpolation entirely ("🎨 polish" not "🎨 polish ← X (CPU)").
Model identity lives in valves; the status line stays
universal (operator directive 2026-05-18: "Sanitize the
emitters to not show models but emit something natively
(no hard-coding)").
* Ran /usr/libexec/mios/mios-owui-install-pipe -- DB now
carries the new content. Verified: all 5 old English
markers gone, all 6 new symbol-form markers present.
2. LAUNCH POSITION ARGS: agent had no way to launch+place
precisely (operator-flagged: "MiOS-Agent(s) MUST also KNOW
window launch params/args to be able to launch and move
precisely!!!"). mios-windows launch now reads three env-driven
knobs the agent can set BEFORE the call:
MIOS_LAUNCH_POSITION left|right|top|bottom|center|none
MIOS_LAUNCH_SIZE <W>x<H> (e.g. 1280x720)
MIOS_LAUNCH_PLACE <X>,<Y> (absolute top-left)
The placement block is computed in the inline Python that
builds the Start-Process command; PowerShell snippet substitutes
the right $x/$y/$w/$h before MoveWindow. Default stays "center"
for backwards compat.
3. POLISH FALSE-POSITIVE: polish KNOWN_AGENT_ERROR_RE matched a
PowerShell-in-bash signature from an early exploratory call in
the same turn, then rewrote the FINAL successful launch as
"Agent attempted PowerShell in bash by mistake". The operator
saw a misleading failure for what was actually a working launch
(compounded by the invisible-window bug fixed in the prior
commit). Tightened the polish prompt: KNOWN AGENT ERRORS
rewrites only fire when the raw output does NOT also contain a
confirmed-success signal (tool_result success:true, pid:<N>,
presented_to_operator:true, "wrote <path>"). Polish the
SUCCESS, not the earlier exploration error.
4. SOUL.md hard rule 3a (NEW): "Launch position + args" -- documents
the three env knobs with examples + the verify-then-stop rule
("ALWAYS verify with mios-window-active --present <title> ONCE.
If presented_to_operator: true -- STOP. Don't retry."). Quotes
the 19-tool-call retry-after-success incident as the case study.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1fa2ae5 commit f5db8f0
3 files changed
Lines changed: 117 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
506 | 562 | | |
507 | 563 | | |
508 | 564 | | |
| |||
519 | 575 | | |
520 | 576 | | |
521 | 577 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
| 578 | + | |
526 | 579 | | |
527 | 580 | | |
528 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
40 | 68 | | |
41 | 69 | | |
42 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
614 | 630 | | |
615 | 631 | | |
616 | 632 | | |
| |||
747 | 763 | | |
748 | 764 | | |
749 | 765 | | |
750 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
751 | 771 | | |
752 | 772 | | |
753 | 773 | | |
| |||
875 | 895 | | |
876 | 896 | | |
877 | 897 | | |
878 | | - | |
| 898 | + | |
| 899 | + | |
879 | 900 | | |
880 | 901 | | |
881 | 902 | | |
| |||
912 | 933 | | |
913 | 934 | | |
914 | 935 | | |
915 | | - | |
| 936 | + | |
916 | 937 | | |
917 | 938 | | |
918 | 939 | | |
| |||
1057 | 1078 | | |
1058 | 1079 | | |
1059 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1060 | 1084 | | |
1061 | | - | |
| 1085 | + | |
1062 | 1086 | | |
1063 | 1087 | | |
1064 | 1088 | | |
| |||
0 commit comments