I have absolutely no idea what you are reporting.
- I went to Fernswarthy's Basement in the Relay Browser.
- I fought the monster
- After running the turn, KoLmafia ran my afterAdventureScript
- Both lastAdventure and nextAdventure are set to "Fernswarthy's Basement"
- The Adventure Selector in the GUI is set to Fernswarthy's Basement.
- I clicked the refresh button on the green sidepane in the GUI. It called api.php
- Unsurprisingly (since that does not run an adventure), it did not run my afterAdventureScript.
- Unsurprisingly (since it was not about to adventure), it did not run my betweenBattleScript, either.
- Both lastAdventure and nextAdventure are still set to Fernswarthy's Basement
- The Adventure Selector in the GUI is still set to Fernswarthy's Basement
- I clicked the refresh link in the charpane in the Relay Browser. in the GUI. It called charpane.php
- Unsurprisingly (since that does not run an adventure), it did not run my afterAdventureScript
- Unsurprisingly (since it was not about to adventure), it did not run my betweenBattleScript, either.
- Both lastAdventure and nextAdventure are still set to Fernswarthy's Basement
- The Adventure Selector in the GUI is still set to Fernswarthy's Basement
Can you give a precise step by step description of what you are doing, what you are seeing, and what you think is wrong? I honestly have no idea what you are reporting.