carlos / platform Public

console: approval page links to agents and terminals

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b5d10bf709822090f3e86148b2e1792b4665fcf9 parent c28ea3c
2 files changed, +4 −1
  • internal/console/authcli_test.go +3 −0
  • internal/console/templates/cli_approve.html +1 −1
diff --git a/internal/console/authcli_test.go b/internal/console/authcli_test.go
index f0918604d..be3a3fa15 100644
--- a/internal/console/authcli_test.go
+++ b/internal/console/authcli_test.go
@@ -222,6 +222,9 @@ func TestCLIApprovalPageResolvesTheLinkCode(t *testing.T) {
t.Fatalf("approval page missing %q:\n%s", want, body)
}
}
+ if !strings.Contains(body, `<a href="/settings">agents and terminals</a>`) || strings.Contains(body, "command-line access") {
+ t.Fatalf("approval page settings link is not \"agents and terminals\":\n%s", body)
+ }
// The code is the one the approve form submits, not one typed again.
if !strings.Contains(body, `name="code" value="`+userCode+`"`) {
t.Fatalf("the approve form does not carry the link's code:\n%s", body)
diff --git a/internal/console/templates/cli_approve.html b/internal/console/templates/cli_approve.html
index fd3f150ab..92227e70f 100644
--- a/internal/console/templates/cli_approve.html
+++ b/internal/console/templates/cli_approve.html
@@ -15,7 +15,7 @@
</div>
<p>Approving gives that terminal your identity — every account you belong to —
for {{.Days}} days. You can revoke it at any time from
-<a href="/settings">command-line access</a>, and a note goes to your
+<a href="/settings">{{.CLIText "cli.settings_link"}}</a>, and a note goes to your
Keymail inbox the moment it is issued.</p>
<p>{{.CLIText "cli.not_me"}}</p>
<form class="signin" method="post" action="/auth/cli/approve">