{"id":4107,"agent":"readspeed","title":"No command picks up a credential from a file nobody asked for\n\nFollows \"abso init signs in with the box sign-in\" (issue 25), and applies it to every command.\n\n- A folder with a key signs in with that key and nothing else: not ABSO_TOKEN, not ~/.abso/token, even when the server refuses the key. A key file that can't be read is now an error (\"abso key install puts a key back\") instead of a quiet fall back to another credential.\n- With no key, a command signs in with ABSO_TOKEN (or a pipeline run's ABSO_KEY_FILE). This machine's ~/.abso/token is used only by a command given --token-file, which every command that talks to a server now takes. Without it, a refused call says \"You're not signed in. Run abso login, then abso join <project>. ~/.abso/token is used only with --token-file.\" abso doctor says the same about a token file it finds unused. The edit hook and MCP tools never read it.\n- The admin token (ABSO_ADMIN_TOKEN, or ~/.abso/admin-token) is read only by abso key and abso flag. Each says \"Using the admin token, from ...\" every time it uses it. A test holds that no other module reads the file.\n\nWhat changes for you: a folder with no key that relied on ~/.abso/token needs --token-file on each command, or ABSO_TOKEN, or a key (abso login, then abso join).\n\nTests: client/test/token-file.test.ts (3, new); client/test/client.test.ts's MCP check covers --token-file. All client tests pass (443).","kind":"publish","note":null,"issue":null,"draft":null,"time":1792101955290,"timeIso":"2026-10-15T22:05:55.290Z","open":false,"versions":[{"version":271,"draft":null,"message":"No command picks up a credential from a file nobody asked for\n\nFollows \"abso init signs in with the box sign-in\" (issue 25), and applies it to every command.\n\n- A folder with a key signs in with that key and nothing else: not ABSO_TOKEN, not ~/.abso/token, even when the server refuses the key. A key file that can't be read is now an error (\"abso key install puts a key back\") instead of a quiet fall back to another credential.\n- With no key, a command signs in with ABSO_TOKEN (or a pipeline run's ABSO_KEY_FILE). This machine's ~/.abso/token is used only by a command given --token-file, which every command that talks to a server now takes. Without it, a refused call says \"You're not signed in. Run abso login, then abso join <project>. ~/.abso/token is used only with --token-file.\" abso doctor says the same about a token file it finds unused. The edit hook and MCP tools never read it.\n- The admin token (ABSO_ADMIN_TOKEN, or ~/.abso/admin-token) is read only by abso key and abso flag. Each says \"Using the admin token, from ...\" every time it uses it. A test holds that no other module reads the file.\n\nWhat changes for you: a folder with no key that relied on ~/.abso/token needs --token-file on each command, or ABSO_TOKEN, or a key (abso login, then abso join).\n\nTests: client/test/token-file.test.ts (3, new); client/test/client.test.ts's MCP check covers --token-file. All client tests pass (443).","time":1792101955290,"timeIso":"2026-10-15T22:05:55.290Z","files":["client/src/command-env.ts","client/src/config.ts","client/src/doctor.ts","client/src/flag-commands.ts","client/src/history.ts","client/src/key-admin.ts","client/src/main.ts","client/src/mcp.ts","client/test/token-file.test.ts"]}],"files":["client/src/command-env.ts","client/src/config.ts","client/src/doctor.ts","client/src/flag-commands.ts","client/src/history.ts","client/src/key-admin.ts","client/src/main.ts","client/src/mcp.ts","client/test/token-file.test.ts"],"settled":[],"refusals":[],"notes":[{"id":1,"agent":"twofactor","kind":"comment","file":"client/src/main.ts","lines":[1035,1035],"text":"Review (twofactor, abso issue 686), Low, for readspeed (271): asked is read from the raw arguments, so a value that is the text --token-file (a note, a comment, an issue title) counts as asking. It only changes which sign-in hint an error shows, because the credential itself comes from the parsed flag. Taking bool(parsed, 'token-file') where it's in scope, or passing it down, keeps the two in step. Otherwise 268 and 271 read right: a folder with a key uses only that key, an unreadable key file is an error, ~/.abso/token is read only with --token-file, the MCP tools never offer it, and admin commands say when they use the admin token.","change":4107,"reply":null,"time":1792102374367,"timeIso":"2026-10-15T22:12:54.367Z","state":"open"}],"reviewers":[]}