@@ -759,6 +759,7 @@ describe("managed startup profile", () => {
759759 lines : [
760760 "SLACK_BOT_TOKEN=xoxb-OPENSHELL-RESOLVE-ENV-SLACK_BOT_TOKEN" ,
761761 "DISCORD_BOT_TOKEN=openshell:resolve:env:DISCORD_BOT_TOKEN" ,
762+ "TELEGRAM_BOT_TOKEN=openshell:resolve:env:v1_TELEGRAM_BOT_TOKEN" ,
762763 ] ,
763764 templateRefs : [ "credential.slackBotToken.placeholder" ] ,
764765 } ,
@@ -776,6 +777,10 @@ describe("managed startup profile", () => {
776777 "a placeholder for a different environment key" ,
777778 "SLACK_BOT_TOKEN=openshell:resolve:env:DISCORD_BOT_TOKEN" ,
778779 ] ,
780+ [
781+ "a versioned placeholder for a different environment key" ,
782+ "SLACK_BOT_TOKEN=openshell:resolve:env:v1_DISCORD_BOT_TOKEN" ,
783+ ] ,
779784 ] ) ( "rejects %s in messaging environment lines (#9355)" , ( _label , line ) => {
780785 expect ( ( ) =>
781786 validateManagedStartupProfile ( {
@@ -821,6 +826,13 @@ describe("managed startup profile", () => {
821826 note : "SLACK_BOT_TOKEN=openshell:resolve:env:SLACK_BOT_TOKEN" ,
822827 } ,
823828 ] ,
829+ [
830+ "a direct credential placeholder outside schema-owned fields" ,
831+ {
832+ ...OPENCLAW_PROFILE . messaging . plan ,
833+ note : "openshell:resolve:env:SLACK_BOT_TOKEN" ,
834+ } ,
835+ ] ,
824836 ] ) ( "rejects %s (#9355)" , ( _label , plan ) => {
825837 expect ( ( ) =>
826838 validateManagedStartupProfile ( {
0 commit comments