The dolly bird (non-thai) needs a new passport as she has run out of pages. She will get this in her home country and they will put two holes in her old passport and no doubt cancel it.
Can she then come back into Thailand by showing her Non Imm O visa which is in the old passport, and get her new passport stamped?