Probably a daft question - but is the pedal attached to the master cylinder? Has that once with an X19 clutch master cylinder where the pushrod went into the rubber cover but hadn't engaged in the socket, it had caught on the sealing lip of the rubber and depressing the clutch caused the rod to stretch the rubber and on release, return the pedal. Took while to work that one out....
Guy