This task is about ensuring the New Discussion Tool opens to the text input mode people and wikis expect, described in the `===Text input mode configuration` section below.
=== Text input mode configuration
| **Account status** | **Wiki configuration** | **User's editing mode [preference](https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-editing)** | User edit count | **New Discussion Tool text input default** | **Notes**
| --- | --- | --- | --- | --- | --- |
| Logged in | two edit tabs | no preference set | ≥1 | Last Reply Tool text input mode used. If none/empty, last article editor used |
| Logged in | two edit tabs | no preference set | 0 | follow behavior defined in `getPreferredEditor` | This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged in | N/A | `visual` | ≥0 | `visual`|
| Logged in | N/A | `source` | ≥0 | `source`|
| Logged in | N/A | `Show me both editor tabs` | 0 | follow behavior defined in `getPreferredEditor`| This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged in | N/A | `visual` | ≥0 | `visual`|
| Logged in | N/A | `Show me both editor tabs` | ≥1 | Last Reply Tool text input mode used. If none/empty, last article editor used|
| Logged out | two edit tabs |N/A | N/A | follow behavior defined in `getPreferredEditor`| This means `visual` on all wikis **except:** en.wikipedia, es.wikipedia, he.wikipedia and fr.wikitionary
| Logged out | default `visual` |N/A | N/A | show `visual`|
| Logged out | default `source` |N/A | N/A | show `source`|
| Logged out| N/A | N/A | Published ≥1 comment with the Reply tool | show the last Reply text input mode used to publish a comment |
=== Open questions
- [x] **1. Question: is a separate ticket needed to ensure the code that determines what Reply Tool text input mode people see by default takes into account peoples' //potential// prior use of the New Discussion Tool?** //Context: The logic above varies slightly from that implemented in T250523. It varies in so far as the logic above takes into account peoples' //potential// prior use of the Reply Tool when determining whether people see the New Discussion Tool's `source` or `visual` mode for the first time.//
-- A separate ticket is **not** needed to ensure the New Discussion Tool is "aware" of peoples' use, or lack thereof, of the Reply Tool and vice versa.
-- Reasons:
--- The New Discussion Tool and Reply Tool use the same preference. This means, the mode (read: source / visual) people use in one tool will affect the mode they see when opening the other tool.
--- //See: T270685#6733080.//
- [ ] **~~2. What text input mode should people see when using the New Discussion Tool for with preloaded context?~~** //More context in T269310#6699739.//
-- We will address this question in T270797. //See question #1 within the task's `===Open questions` section.//
=== Testing instructions
- If QA has a vagrant virtual machine, //all// configurations described in the "Text input mode configuration" and "Partner wiki article editor default configurations" section can be tested.
- If QA does NOT have a vagrant virtual machine, ONLY the user-level configurations (read: preferences) described in the "Text input mode configuration" section can be tested; the "Partner wiki article editor default configurations" can be tested as well.
-- //Reasons: https://en.wikipedia.beta.wmflabs.org/'s wiki-level configurations cannot be changed.//
=== Done
- [ ] Behavior described in "Text input mode configuration" has been implemented