@@ -1732,7 +1732,7 @@ describe("buildStatusMessage", () => {
|
1732 | 1732 | }); |
1733 | 1733 | |
1734 | 1734 | const normalized = normalizeTestText(text); |
1735 | | -expect(normalized).toContain("Session selected: google/gemini-3.1-flash-lite"); |
| 1735 | +expect(normalized).toContain("Model: google/gemini-3.1-flash-lite"); |
1736 | 1736 | expect(normalized).not.toContain("Fallbacks:"); |
1737 | 1737 | }); |
1738 | 1738 | |
@@ -1765,7 +1765,7 @@ describe("buildStatusMessage", () => {
|
1765 | 1765 | expect(normalizeTestText(text)).toContain("Model: google-antigravity/claude-sonnet-4-6"); |
1766 | 1766 | }); |
1767 | 1767 | |
1768 | | -it("warns when the session-selected model differs from the configured default", () => { |
| 1768 | +it("renders session-selected model overrides compactly", () => { |
1769 | 1769 | const text = buildStatusMessage({ |
1770 | 1770 | agent: { |
1771 | 1771 | model: "zhipu/glm-4.5-air", |
@@ -1785,14 +1785,14 @@ describe("buildStatusMessage", () => {
|
1785 | 1785 | }); |
1786 | 1786 | |
1787 | 1787 | const normalized = normalizeTestText(text); |
1788 | | -expect(normalized).toContain("Configured default: zhipu/glm-4.5-air"); |
1789 | | -expect(normalized).toContain("Session selected: deepseek/deepseek-v4-flash"); |
1790 | | -expect(normalized).toContain("Reason: session override"); |
1791 | | -expect(normalized).toContain( |
1792 | | - "This session is pinned to deepseek/deepseek-v4-flash; config primary zhipu/glm-4.5-air will apply to new/unpinned sessions.", |
1793 | | -); |
1794 | | -expect(normalized).toContain("Clear with: /model default"); |
1795 | | -expect(normalized).toContain( |
| 1788 | +expect(normalized).toContain("Model: deepseek/deepseek-v4-flash"); |
| 1789 | +expect(normalized).toContain("pinned session; config primary zhipu/glm-4.5-air"); |
| 1790 | +expect(normalized).toContain("clear /model default"); |
| 1791 | +expect(normalized).not.toContain("Configured default:"); |
| 1792 | +expect(normalized).not.toContain("Session selected:"); |
| 1793 | +expect(normalized).not.toContain("Reason: session override"); |
| 1794 | +expect(normalized).not.toContain("This session is pinned"); |
| 1795 | +expect(normalized).not.toContain( |
1796 | 1796 | "Docs: https://docs.openclaw.ai/concepts/models#selection-source-and-fallback-behavior", |
1797 | 1797 | ); |
1798 | 1798 | }); |
|