Text this: History Anchors: How Prior Behavior Steers LLM Decisions Toward Unsafe Actions