@@ -1732,7 +1732,7 @@ describe("buildStatusMessage", () => {
17321732 } ) ;
17331733
17341734 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" ) ;
17361736 expect ( normalized ) . not . toContain ( "Fallbacks:" ) ;
17371737 } ) ;
17381738
@@ -1765,7 +1765,7 @@ describe("buildStatusMessage", () => {
17651765 expect ( normalizeTestText ( text ) ) . toContain ( "Model: google-antigravity/claude-sonnet-4-6" ) ;
17661766 } ) ;
17671767
1768- it ( "warns when the session-selected model differs from the configured default " , ( ) => {
1768+ it ( "renders session-selected model overrides compactly " , ( ) => {
17691769 const text = buildStatusMessage ( {
17701770 agent : {
17711771 model : "zhipu/glm-4.5-air" ,
@@ -1785,14 +1785,14 @@ describe("buildStatusMessage", () => {
17851785 } ) ;
17861786
17871787 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 (
17961796 "Docs: https://docs.openclaw.ai/concepts/models#selection-source-and-fallback-behavior" ,
17971797 ) ;
17981798 } ) ;
0 commit comments