jayvdb added a comment.
The current design of pywikibot is that it always uses the sysop account **only** for actions which require sysop capabilities. It uses the bot account for everything else. https://phabricator.wikimedia.org/T71283 is considering to change that design.
My understanding of this problem is
1. pywikibot logs into site with the non-sysop account, that has the 'bot' flag, maybe does an edit which is a 'bot' edit. 2. pywikibot logs into site with the sysop account, that does not have the 'bot' flag. 3. pywikibot edit using non-sysop account should be marked as a 'bot' edit ('b' in recent changes), .. however the edit isnt marked as a bot edit, and that is this bug.
In step 2, the site object does not keep the login credentials of the non-sysp account. https://phabricator.wikimedia.org/T67196 In step 3, the site object should re-login automatically using non-sysop username and password in config.password_file.
TASK DETAIL https://phabricator.wikimedia.org/T57140
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: jayvdb, Nullzero, Xqt, Legoktm, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org