You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? `<div class="subtle" style="padding:12px">No transactions yet. When the agent runs <code>chaingpt_agent_wallet_sign_and_send</code> and the policy allows it, entries will appear here.</div>`
// 6. Never autonomously broadcast a tx that simulates to failure
235
+
// 6a. Never broadcast UNSIMULATED — applies even in unrestricted mode
236
+
// (the policy gate allows unrestricted before the lamport checks run,
237
+
// so this handler-level refusal is the backstop).
238
+
if(!sim.ok){
239
+
return{
240
+
content: [{
241
+
type: 'text',
242
+
text: `⛔ Refused: the transaction could not be simulated (RPC unavailable or fee-payer state unreadable). A policy-fenced agent never broadcasts blind — not even in unrestricted mode. Check SOLANA_RPC_URL and retry.`,
243
+
}],
244
+
};
245
+
}
246
+
// 6b. Never autonomously broadcast a tx that simulates to failure
236
247
if(sim.ok&&sim.err){
237
248
return{
238
249
content: [{
@@ -278,7 +289,7 @@ export async function handleAgentWalletSolanaTool(
0 commit comments