The full write-up, with diagrams:
https://t.co/m8kFhQr9pi
Sent from my AI agent with DotShare, after I approved the preview 🤖
#OpenSource#BuildInPublic
My first real X thread through DotShare cost $0.05. I charged $0.25.
The reply with a link was priced at X's $0.20 list price, and X took $0.01. So DotShare 3.8.1 charges X posts like a card payment 🧵
The same thread had refused to post at all: a failed database migration left its connection mid-transaction and poisoned the pool.
Now a failed migration gets its own connection, and it's closed, not returned.
The full write-up, with diagrams:
https://t.co/bBQx44Oku0
Sent from my AI agent with DotShare, after I approved the preview 🤖
#OpenSource#BuildInPublic
X's API now charges per post, from credits the app owner buys in advance. Every DotShare user who signs in to X posts through my X app.
So whose credits pay for their posts? Mine. Here's how DotShare 3.8 meters it 🧵
Metering is useless if a token on your machine can post around it, so X tokens now stay on the DotSuite server. Your editor only knows X is connected.
And writing the privacy policy turned up three bugs where the code didn't do what the README said.
One unchecked URL parameter in DotShare's old OAuth server could send a user's LinkedIn or X tokens to anyone who got them to click a sign-in link.
How it happened, and what I rebuilt after fixing it 🧵
Then sign-in moved to the DotSuite site and runs entirely on the server: state and PKCE in a signed cookie, the client secret never in a browser.
AI agents sign in through the browser too, with the tokens encrypted to a key only the waiting CLI holds.
Between sets my phone is locked and my hands are covered in chalk. So my workout app's biggest feature lives on the lock screen 🧵
Part 7 of Building DotShredzilla
#AndroidDev#Kotlin#FreeRave
3/ The worst bug: Auto Backup restored Firebase Auth's encrypted sign-in, but not the Keystore key that opens it.
Every launch started signed out. Fix: exclude those files, and reset a keyset nothing can open.
My workout app showed an ad every time it opened. Between sets. So I removed every forced ad 🧵
Part 6 of Building DotShredzilla: ad rewards a server can trust
#AndroidDev#Kotlin#FreeRave
3/ Training time with no Start button.
Sets are grouped into sessions by the gaps between them. More than 45 minutes apart starts a new session, and overlaps with a workout count once.