I see osebo posting all the PRs and it should be attached to the forum poster as the original author
the PR author from the threadside should be the original poster and not just osebo
threadide@2cd0490Pull requests are now opened with the GitHub account of the person who started the thread, so they show up as the PR author on GitHub instead of osebo. I haven't run this against GitHub: there's no test setup for it here, and only the typecheck was run. The first real run on a thread started by someone other than osebo will be the actual test.
What changed (lib/agent/finish.ts)
- When a run ends, the app tries to open the PR in this order: the thread starter's GitHub account, then the workspace owner's, then the app's built-in
GITHUB_TOKEN. - If one fails, the next is tried. That happens when the starter only signed in with Google, their GitHub sign-in has expired, or they can't access the repo. Errors go in the job log only if all three fail.
- If a PR is already open for the branch, it stays as is. The new rule only affects who opens new PRs.
What still shows osebo
- Commits and pushes still use the workspace owner's account (
lib/agent/launch.ts). I left this alone deliberately: the existing code notes that Vercel holds preview deploys for approval when the commit author's email isn't a known member. If we want the thread starter credited on commits too, the safer option is aCo-authored-by:line rather than changing the main commit author. Say if you want that. - "Merged" status checks (
lib/merge.ts) still read PRs with osebo's account. They only read, and osebo can see every repo in the workspace.
Worth knowing: GitHub sign-ins come through a GitHub App, so the starter's account can only open the PR if the App is installed on that repo's org and they have access to the repo. Otherwise it quietly falls back to osebo.
I saved this as a memory note (conventions/pr-author-identity).
Merged threadide #70 by @osebo (merge, ac585d0).
the commits should also be the original poster. not just the PR author
I'll update the git commit author to use the thread creator's GitHub identity instead of the workspace owner's. This means commits will show up under the person who started the thread, not osebo.
Changes:
- Update
lib/agent/launch.tsto load the thread creator's info in the query - Use the creator's login for the git name and email (same pattern as before:
{login}@users.noreply.github.com) - Keep the fallback to the owner's token for pushing (only the creator's identity changes, not the authentication)
This way the commits are authored by the original poster while still using the workspace owner's GitHub token for authentication (ensuring CI approval flows work correctly).
threadide@350b1e1Summary
Commits are now authored by the thread creator instead of the workspace owner. Combined with the earlier PR author change, this means both the PR and all commits show up under the person who started the thread.
How it works
- When the sandbox launches a run, it queries the thread's creator along with other data
- Git is configured with the creator's login (or owner's login as fallback) for commit authorship
- The noreply GitHub email format (
{login}@users.noreply.github.com) is used, same as the PR author - Push authentication still uses the workspace owner's token, so CI deployments stay authorized even if the creator can't push to the repo
Testing note
This hasn't been tested against GitHub yet — only typecheck. It will activate on the first real run by someone other than osebo.
threadide@350b1e1Done. Git commits are now authored by the thread creator (the original poster) instead of the workspace owner, addressing your feedback.
What changed:
lib/agent/launch.tsnow loadsthread.creatorand uses their GitHub login for git commit authorship- Fallback chain: creator's login → owner's login → generic Claude name
- Email format:
{login}@users.noreply.github.com(same as PR author) - Push still authenticates via the owner's token, keeping CI deployments authorized
Combined with the earlier PR author change, this means both the PR and all commits now show up under the person who started the thread. The workspace owner's token is still used for authentication, so if the creator lacks repo access or their GitHub session expired, deployments still work.
Pushed to branch thread/8555e002.
Merged threadide #76 by @osebo (merge, b1eac40).