¶1 — Carolyn Elsey and Deborah McFadden, two attorneys with the Pierce County Department of Assigned Counsel (DAC), appeal the trial court’s denial of their CR 12(b)(6) motion, arguing that the statute of limitations on Robert Hippie’s attorney malpractice action has expired. They claim that the trial court erred in finding that the statute of limitations tolled under the “continuous representation” rule. They also argue that Hippie failed to allege facts sufficient to show proximate cause. We granted discretionary review to determine the proper application of the continuous representation rule. We hold that although the trial court may have misapplied the continuous repre*555sentation rule, it did not err in denying the defendants’ motion to dismiss. We affirm.
FACTS
¶2 On January 8, 2004, a Pierce County Superior Court commissioner found Hippie in contempt of court for failing to comply with a child support order. The commissioner issued a bench warrant for his arrest, setting bail at $4,000, the approximate amount of support found owing. The order indicated that Hippie could purge his contempt by bringing his support current.
¶3 Hippie was arrested on the warrant over a year later on April 15, 2005, and placed in jail. In the next several days, Hippie contacted DAC and was determined eligible for appointed counsel. On May 9, 2005, Hippie received a letter from DAC notifying him that attorney Carolyn Elsey had been appointed to represent him. On May 10, 2005, DAC attorney Deborah McFadden filed a special notice of appearance on behalf of Hippie in connection with the contempt matter.
¶4 Previously, on May 5, 2005, Hippie had a hearing to review his release conditions. He was not represented by counsel at the hearing. Child support arrearages were calculated to be $20,297.75, before interest. Continued confinement was ordered. Release was conditioned upon payment of the arrearages. On June 28, 2005, Hippie’s confinement was changed to electronic home monitoring.
¶5 According to Hippie, he had contact with Elsey about his case a few days after May 9, 2005, and again about a month later. He claims that thereafter he attempted to contact Elsey and McFadden numerous times in writing and by telephone regarding his case.
¶6 On June 21,2006, attorney Robert Way filed a special notice of appearance on behalf of Hippie regarding the contempt matter. At a hearing on September 18, 2006, Way secured Hippie’s release. Ongoing detention and electronic home monitoring were immediately terminated.
*556¶7 On June 18, 2009, Hippie filed a legal malpractice claim against Elsey and McFadden. Elsey and McFadden moved to dismiss, arguing that the statute of limitations barred the action and, alternatively, that the complaint did not demonstrate proximate cause. The trial court denied the motion, ruling that under the continuous representation rule, Way’s filing an appearance on the contempt was a reasonable point in time for the action to accrue. We granted discretionary review to review the proper application of the continuous representation rule.
ANALYSIS
I. Statute of Limitations
¶8 Elsey and McFadden assign error to the trial court’s denial of their motion to dismiss the complaint. According to Elsey and McFadden, Hippie sat on his rights for over four years — until June 2009 — well past the three-year-limitation period. They argue that the continuous representation rule, which tolls the statute of limitations as long as the attorney continues to represent the client in the same matter, cannot apply here where the malpractice action is based on a claim of lack of representation. Br. of Appellant at 11. Instead, they argue that under the “discovery rule,” which begins the running of the statute of limitations when a plaintiff discovers the facts giving rise to a cause of action, Hippie’s action accrued starting in May 2005, by which time he knew of his alleged injury. Br. of Appellant 7-8.
¶9 We review CR 12(b)(6) rulings de novo. Burton v. Lehman, 153 Wn.2d 416, 422, 103 P.3d 1230 (2005). A trial court should grant a motion to dismiss under CR 12(b)(6) only if it appears beyond doubt that the plaintiff cannot prove any set of facts, consistent with the complaint, justifying recovery. Burton, 153 Wn.2d at 422; see also McCurry v. Chevy Chase Bank, FSB, 169 Wn.2d 96, 101, 233 P.3d 861 (2010) (refusing to change the standard for dis*557missing a CR 12(b)(6) motion despite the United States Supreme Court’s recently altered interpretation of Federal Rules of Civil Procedure 12(b)(6)). In addition, a defendant may ask a trial court to dismiss a claim brought after the statute of limitations has expired. See, e.g., Atchison v. Great W. Malting Co., 161 Wn.2d 372, 374, 166 P.3d 662 (2007). For the purposes of this analysis, a plaintiff’s allegations are presumed to be true and a court may consider hypothetical facts not included in the record. Burton, 153 Wn.2d at 422.
A. Continuous Representation Rule
¶10 The statute of limitations for an attorney malpractice action is three years. RCW 4.16.080(3); Huff v. Roach, 125 Wn. App. 724, 729, 106 P.3d 268, review denied, 155 Wn.2d 1023 (2005). The continuous representation rule tolls the statute of limitations until the end of an attorney’s representation of a client in the same matter in which the alleged malpractice occurred. Janicki Logging & Constr. Co. v. Schwabe, Williamson & Wyatt, PC, 109 Wn. App. 655, 661, 37 P.3d 309 (2001), review denied, 146 Wn.2d 1019 (2002); see also Burns v. McClinton, 135 Wn. App. 285, 297, 143 P.3d 630 (2006) (recognizing the continuous representation rule with its limitation to representation concerning a particular transaction), review denied, 161 Wn.2d 1005 (2007). In Janicki, the court noted policy reasons in favor of adopting the rule in Washington: (1) the rule avoids disruption of the attorney-client relationship and gives attorneys a chance to remedy mistakes before being sued, (2) it prevents attorneys from defeating a malpractice claim by continuing to represent a client until the statute of limitations has expired, and (3) speculative malpractice claims are avoided. Janicki, 109 Wn. App. at 662. Moreover, the rule is consistent with the purpose of the statute of limitations, which is to prevent stale claims and enable the defendant to preserve evidence. Janicki, 109 Wn. App. at 662. The application of the continuous representation rule should be based on whether any of the above policy consid*558erations are furthered. Burns, 135 Wn. App. at 294 (quoting 3 Ronald E. Mallen & Jeffrey M. Smith, Legal Malpractice § 22.13, at 372 (2006 ed.)).
¶11 The test for determining whether an attorney’s representation of a client regarding a specific subject matter continues or ends is a matter of first impression in Washington. In general, the determinative event for the continuous representation rule is when the representation ended. 3 Ronald E. Mallen & Jeffrey M. Smith, Legal Malpractice § 23.13, at 434 (2008 ed.). The inquiry is not whether an attorney-client relationship ended but when the representation of the specific subject matter concluded. 3 Mallen & Smith, supra, § 23.13, at 434 (2008). Termination does not require formally withdrawing as counsel; de facto termination can be inferred from circumstantial evidence. 3 Mat,ten & Smith, supra, § 23.13, at 439 (2008). As there is no bright-line rule for determining when representation ends, particular circumstances most often present an issue of fact. 3 Mallen & Smith, supra, § 23.13, at 440 (2008); see, e.g., Gonzalez v. Kalu, 140 Cal. App. 4th 21, 31, 43 Cal. Rptr. 3d 866 (2006).
¶12 The test for deciding when representation ends varies by jurisdiction. The so-called “New York rule” states that an attorney-client relationship exists as long as there are clear indicia of an ongoing, continuous, developing, and dependent relationship. Muller v. Sturman, 79 A.D.2d 482, 437 N.Y.S.2d 205, 208 (1981). Other courts have adopted a more concrete test, stating that de facto termination occurs if the client clearly indicates that he is no longer relying on the professional judgment of his attorney and adopts a position adverse to that of the attorney. DeLeo v. Nusbaum, 263 Conn. 588, 597-98, 821 A.2d 744 (2003). In these cases, continuity of representation depends not on the client’s subjective beliefs but on evidence of an ongoing, mutual relationship and of activities in furtherance of that relationship. Worthington v. Rusconi, 29 Cal. App. 4th 1488, 1498, 35 Cal. Rptr. 2d 169 (1994).
*559¶13 These rules, however, are of limited use where unilateral conduct on the part of the attorney arguably terminates the attorney-client relationship. If the measure of a terminated relationship is a client’s objective step toward ending a relationship, an attorney can too easily exploit the client’s reliance and escape liability. Gonzalez, 140 Cal. App. 4th at 30. As we noted above, one of the stated purposes of the continuous representation rule is to prevent an attorney from defeating a malpractice cause of action by continuing to represent the client until the statutory period has expired. Janicki, 109 Wn. App. at 662. This purpose cannot be served if tolling ends when the attorney unilaterally abandons representation or ceases to attempt to remedy an error without the client’s knowledge or consent.
¶14 Consistent with the purposes of the rule, other authorities state that representation may still end if the attorney withdraws unilaterally, but only if the client has no reasonable expectation of continued representation. Gonzalez, 140 Cal. App. 4th at 30-31; see also Shumsky v. Eisenstein, 96 N.Y.2d 164, 170-71, 750 N.E.2d 67, 726 N.Y.S. 2d 365 (2001) (date measured from when client knew or should have reasonably known of the attorney’s abandonment of representation). In Gonzalez, the lawyer claimed to end the attorney-client relationship, but the client disputed receiving notice of the termination and alleged that she still believed the attorney was pursuing her claim. Gonzalez, 140 Cal. App. 4th at 26. The court concluded that resolution of when the representation ended was a question of fact and that where there is unilateral withdrawal or abandonment, the representation ends “when the client actually has or reasonably should have no expectation that the attorney will provide further legal services.” Gonzalez, 140 Cal. App. 4th at 30.
¶15 We adopt the Gonzalez approach. Running the statute of limitations from the first break in continuity of the relationship does not protect an injured client where the attorney abandons representation. The Gonzalez rule, which accounts for the client’s reasonable expectations, is *560an appropriate standard to apply because it furthers the stated objective of preventing an attorney from being able to wait out an alleged malpractice claim.
¶16 Elsey and McFadden argue that the continuous representation rule cannot apply where the malpractice action is based on a claim of lack of representation. But Elsey and McFadden have not contested that an attorney-client relationship was formed. Thus, in applying the continuous representation rule, we encounter the factual question of when the relationship ended. At what point Hippie could no longer reasonably expect to receive services from Elsey or McFadden is not a question this court can answer as a matter of law. Even if the trial court misapplied the continuous representation rule by holding that the statute of limitations tolled until Hippie received new representation, it did not err in denying the defendant’s motion to dismiss. We hold that whether the statute of limitations tolled under the continuous representation rule is an appropriate determination for trial.
B. Discovery Rule
¶17 In addition to contesting the application of the continuous representation rule, Elsey and McFadden contend that Hippie’s claims are barred under the “discovery rule.” Br. of Appellant at 7-8. The discovery rule states that the statute of limitations does not start to run on an attorney malpractice claim until the client discovers, or in the exercise of reasonable diligence should have discovered, facts that give rise to his cause of action. Peters v. Simmons, 87 Wn.2d 400, 406, 552 P.2d 1053 (1976). The rule does not require knowledge of the existence of a legal cause of action; instead, the statute of limitations begins to run when the plaintiff knew or should have known all the essential elements of the cause of action — duty, breach, causation, and injury. Matson v. Weidenkopf, 101 Wn. App. 472, 482, 3 P.3d 805 (2000).
¶18 Consequently, the discovery rule has consistently been applied to toll the statute of limitations until *561the plaintiff discovers, or should have discovered, his injury resulting from professional malpractice. Richardson v. Denend, 59 Wn. App. 92, 96, 795 P.2d 1192 (1990), review denied, 116 Wn.2d 1005 (1991). The application of the discovery rule is generally a factual question. Matson, 101 Wn. App. at 482. But where reasonable minds can reach but one conclusion, questions of fact may be determined as a matter of law. Hartley v. State, 103 Wn.2d 768, 775, 698 P.2d 77 (1985).
¶19 Elsey and McFadden argue that Hippie’s repeated attempts to contact DAC attorneys beginning in May 2005 show that he wanted to challenge his confinement. Thus, according to Elsey and McFadden, Hippie knew the facts, including his injury, which constitute his malpractice claim as early as May 2005. Hippie responds that the application of the discovery rule presents a question of fact for the jury. He asserts that his repeated efforts to contact his attorneys show he continued to believe that they would assist him.
¶20 At trial, if the jury concludes that the continuous representation rule tolls the statute of limitations to preserve Hippie’s claim, it need not determine if the discovery rule applies. See Burns, 135 Wn. App. at 299 (plaintiff can argue the grounds for tolling the statute of limitations in the alternative). But if the continuous representation rule does not toll Hippie’s claim, the date of Hippie’s discovery of his injury is still an issue of fact that would require trial. Under the CR 12(b)(6) standard, it is possible that Hippie did not know he had a legal basis for challenging his continued confinement until Way began to represent him. Thus, the denial of the motion to dismiss was proper on the grounds that whether the discovery rule applies is a factual question for the jury.
II. Proximate Cause
¶21 Elsey and McFadden also argue that the court should have granted the motion to dismiss because Hippie failed to show that he would have received a more favorable *562outcome in the underlying action but for defendant’s alleged malpractice. They claim that the cause of Hippie’s continued detention was his intentional failure to comply with the 2004 court order. They also claim that Hippie cannot meet the burden of showing that he had a right to be released before Septmeber 2006 as a matter of law. Hippie responds that Elsey and McFadden have failed to show beyond doubt that the facts alleged in the complaint preclude a finding that Elsey and McFadden caused his injury.
¶22 Liability for legal malpractice requires proof of four elements: (1) the existence of an attorney-client relationship giving rise to a duty of care on the part of the lawyer, (2) an act or omission breaching that duty, (3) damage to the client, and (4) the breach of duty must have been a proximate cause of the damages to the client. Nielson v. Eisenhower & Carlson, 100 Wn. App. 584, 589, 999 P.2d 42, review denied, 141 Wn.2d 1016 (2000). When determining questions of causation in a legal malpractice action, the concern is cause in fact, i.e., the “but for” consequences of an attorney’s negligent act or omission. Geer v. Tonnon, 137 Wn. App. 838, 844, 155 P.3d 163 (2007), review denied, 162 Wn.2d 1018 (2008).
¶23 In most cases, cause in fact is a question for the jury to decide. Daugert v. Pappas, 104 Wn.2d 254, 257, 704 P.2d 600 (1985). Only where the causation question requires legal analysis is the issue one for the court to decide. See Brust v. Newton, 70 Wn. App. 286, 290-91, 852 P.2d 1092 (1993) (“the line between questions for the judge and those for the jury in legal malpractice actions has generally been drawn between questions of law and questions of fact”), review denied, 123 Wn.2d 1010 (1994). At this stage in the proceedings, we need decide only whether the complaint precludes a finding that Elsey and McFadden caused Hippie’s continued detention as a matter of law.
¶24 Incarceration for civil contempt can continue only so long as it serves a coercive purpose. In re Pers. Restraint of King, 110 Wn.2d 793, 802, 756 P.2d 1303 (1988). A threshold requirement is a finding of current ability to *563perform an act previously ordered. Britannia Holdings Ltd. v. Greer, 127 Wn. App. 926, 933, 113 P.3d 1041 (2005), review denied, 156 Wn.2d 1032 (2006). Once a court is convinced that the contemnor will steadfastly refuse to comply with the terms of the order, the court is obligated to release him since incarceration would no longer serve its coercive purposes. King, 110 Wn.2d at 803. An incarcerated contemnor must be afforded the opportunity to purge himself of the contempt and, at regular intervals, to present new evidence tending to show that confinement has lost it coercive effect. King, 110 Wn.2d at 805.
¶25 Here, Elsey and McFadden are unable to show that Hippie cannot prove causation as a matter of law. Based on the facts alleged in the complaint, it is possible that the outcome of the May 5, 2005 hearing would have been different had counsel been available. The complaint alleges that in 2005, DAC determined that Hippie qualified for appointed counsel, supporting the inference that he was unable to pay the terms of the initial contempt order. This is an issue of fact that, if proved, refutes Elsey and McFadden’s claim that the 2005 order was a result of Hippie’s refusal to pay and that no representation would have changed the outcome of the hearing.
¶26 Furthermore, Hippie had the right to present new evidence in regular intervals after May 2005 to purge himself of the contempt. See King, 110 Wn.2d at 805. Elsey and McFadden cannot support their assertion that Hippie was not entitled to have a court address the terms of his release before September 2006. Because there is a factual question as to whether Hippie was able to pay the terms of his release, it is possible that Hippie could have proved his indigent status to demonstrate that the court’s order no longer served a coercive purpose. Under CR 12(b)(6), Elsey and McFadden had to prove beyond doubt that that Hippie could not prove any set of facts establishing causation. Burton, 153 Wn.2d at 422. They have failed to meet this *564burden and the trial court did not err in dismissing their motion to dismiss the complaint.
¶27 Affirmed.
Worswick, A.C.J., concurs.Judge Paula Casey is serving as a judge pro tempore of the Washington State Court of Appeals pursuant to CAR 21(c).